diff options
author | Lei Li <lilei@linux.vnet.ibm.com> | 2011-11-15 17:02:43 +0800 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-11-29 17:29:33 -0700 |
commit | 1f8a339deef6583737d798cfb5a4d57f2d0bcc0a (patch) | |
tree | b4bbdbdd537a0b4bea3b5341c820726544de08ec /src/driver.h | |
parent | blkiotune: add qemu support for blkiotune.device_weight (diff) | |
download | libvirt-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.h | 15 |
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 |