diff options
author | Peter Krempa <pkrempa@redhat.com> | 2017-02-23 13:09:12 +0100 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2017-03-27 10:09:49 +0200 |
commit | bb09798fbeb5ffcdb6145a25d48ded794500ad77 (patch) | |
tree | f447555f0c9cd85ef92bfdc95e898914ad207356 /src/driver-hypervisor.h | |
parent | e96130dcc838035222cd21b777b5c69cd8a37346 (diff) | |
download | libvirt-bb09798fbeb5ffcdb6145a25d48ded794500ad77.tar.gz |
lib: Add API for setting the threshold size for VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD
The new API can be used to configure the threshold when
VIR_DOMAIN_EVENT_ID_BLOCK_THRESHOLD should be fired.
Diffstat (limited to 'src/driver-hypervisor.h')
-rw-r--r-- | src/driver-hypervisor.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/driver-hypervisor.h b/src/driver-hypervisor.h index b81420aefe..3053d7ae8c 100644 --- a/src/driver-hypervisor.h +++ b/src/driver-hypervisor.h @@ -1257,6 +1257,13 @@ typedef int int state, unsigned int flags); +typedef int +(*virDrvDomainSetBlockThreshold)(virDomainPtr domain, + const char *dev, + unsigned long long threshold, + unsigned int flags); + + typedef struct _virHypervisorDriver virHypervisorDriver; typedef virHypervisorDriver *virHypervisorDriverPtr; @@ -1496,6 +1503,7 @@ struct _virHypervisorDriver { virDrvDomainGetGuestVcpus domainGetGuestVcpus; virDrvDomainSetGuestVcpus domainSetGuestVcpus; virDrvDomainSetVcpu domainSetVcpu; + virDrvDomainSetBlockThreshold domainSetBlockThreshold; }; |