mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-26 07:34:04 +03:00
lib: Introduce virDomainSetIOThreadParams
Create a new API that will allow an adjustment of IOThread polling parameters for the specified IOThread. These parameters will not be saved in the guest XML. Currently the only parameters supported will allow the hypervisor to adjust the parameters used to limit and alter the scope of the polling interval. The polling interval allows the IOThread to spend more or less time processing in the guest. Based on code originally posted by Pavel Hrdina <phrdina@redhat.com> to add virDomainAddIOThreadParams and virDomainModIOThreadParams. Modification of those changes to use virDomainSetIOThreadParams instead and remove concepts related to saving the data in guest XML as well as the way to specifically enable the polling parameters. Signed-off-by: John Ferlan <jferlan@redhat.com> ACKed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -406,6 +406,13 @@ typedef int
|
||||
unsigned int iothread_id,
|
||||
unsigned int flags);
|
||||
|
||||
typedef int
|
||||
(*virDrvDomainSetIOThreadParams)(virDomainPtr domain,
|
||||
unsigned int iothread_id,
|
||||
virTypedParameterPtr params,
|
||||
int nparams,
|
||||
unsigned int flags);
|
||||
|
||||
typedef int
|
||||
(*virDrvDomainGetSecurityLabel)(virDomainPtr domain,
|
||||
virSecurityLabelPtr seclabel);
|
||||
@@ -1407,6 +1414,7 @@ struct _virHypervisorDriver {
|
||||
virDrvDomainPinIOThread domainPinIOThread;
|
||||
virDrvDomainAddIOThread domainAddIOThread;
|
||||
virDrvDomainDelIOThread domainDelIOThread;
|
||||
virDrvDomainSetIOThreadParams domainSetIOThreadParams;
|
||||
virDrvDomainGetSecurityLabel domainGetSecurityLabel;
|
||||
virDrvDomainGetSecurityLabelList domainGetSecurityLabelList;
|
||||
virDrvNodeGetSecurityModel nodeGetSecurityModel;
|
||||
|
||||
Reference in New Issue
Block a user