aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Li <lilei@linux.vnet.ibm.com>2011-11-15 17:02:43 +0800
committerEric Blake <eblake@redhat.com>2011-11-29 17:29:33 -0700
commit1f8a339deef6583737d798cfb5a4d57f2d0bcc0a (patch)
treeb4bbdbdd537a0b4bea3b5341c820726544de08ec /src/driver.h
parentblkiotune: add qemu support for blkiotune.device_weight (diff)
downloadlibvirt-1f8a339deef6583737d798cfb5a4d57f2d0bcc0a.tar.gz
libvirt-1f8a339deef6583737d798cfb5a4d57f2d0bcc0a.tar.bz2
libvirt-1f8a339deef6583737d798cfb5a4d57f2d0bcc0a.zip
Add new API virDomain{Set, Get}BlockIoTune
This patch add new pulic API virDomainSetBlockIoTune and virDomainGetBlockIoTune. Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com> Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'src/driver.h')
-rw-r--r--src/driver.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/driver.h b/src/driver.h
index 1919e314b..941ff51f1 100644
--- a/src/driver.h
+++ b/src/driver.h
@@ -757,6 +757,19 @@ typedef int
int interval,
unsigned int count);
+typedef int
+ (*virDrvDomainSetBlockIoTune)(virDomainPtr dom,
+ const char *disk,
+ virTypedParameterPtr params,
+ int nparams,
+ unsigned int flags);
+typedef int
+ (*virDrvDomainGetBlockIoTune)(virDomainPtr dom,
+ const char *disk,
+ virTypedParameterPtr params,
+ int *nparams,
+ unsigned int flags);
+
/**
* _virDriver:
*
@@ -919,6 +932,8 @@ struct _virDriver {
virDrvSetKeepAlive setKeepAlive;
virDrvConnectIsAlive isAlive;
virDrvNodeSuspendForDuration nodeSuspendForDuration;
+ virDrvDomainSetBlockIoTune domainSetBlockIoTune;
+ virDrvDomainGetBlockIoTune domainGetBlockIoTune;
};
typedef int