remote: Add support for AddIOThread and DelIOThread

Add remote support for the add/delete IOThread API's
This commit is contained in:
John Ferlan 2015-03-25 17:13:07 -04:00
parent 130a0ed281
commit 5bb343f355
3 changed files with 43 additions and 1 deletions

View File

@ -8239,6 +8239,8 @@ static virHypervisorDriver hypervisor_driver = {
.domainGetMaxVcpus = remoteDomainGetMaxVcpus, /* 0.3.0 */
.domainGetIOThreadInfo = remoteDomainGetIOThreadInfo, /* 1.2.14 */
.domainPinIOThread = remoteDomainPinIOThread, /* 1.2.14 */
.domainAddIOThread = remoteDomainAddIOThread, /* 1.2.15 */
.domainDelIOThread = remoteDomainDelIOThread, /* 1.2.15 */
.domainGetSecurityLabel = remoteDomainGetSecurityLabel, /* 0.6.1 */
.domainGetSecurityLabelList = remoteDomainGetSecurityLabelList, /* 0.10.0 */
.nodeGetSecurityModel = remoteNodeGetSecurityModel, /* 0.6.1 */

View File

@ -1212,6 +1212,18 @@ struct remote_domain_pin_iothread_args {
unsigned int flags;
};
struct remote_domain_add_iothread_args {
remote_nonnull_domain dom;
unsigned int iothread_id;
unsigned int flags;
};
struct remote_domain_del_iothread_args {
remote_nonnull_domain dom;
unsigned int iothread_id;
unsigned int flags;
};
struct remote_domain_get_security_label_args {
remote_nonnull_domain dom;
};
@ -5655,5 +5667,21 @@ enum remote_procedure {
* @generate: both
* @acl: none
*/
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_DEVICE_ADDED = 354
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_DEVICE_ADDED = 354,
/**
* @generate:both
* @acl: domain:write
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
*/
REMOTE_PROC_DOMAIN_ADD_IOTHREAD = 355,
/**
* @generate:both
* @acl: domain:write
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
*/
REMOTE_PROC_DOMAIN_DEL_IOTHREAD = 356
};

View File

@ -834,6 +834,16 @@ struct remote_domain_pin_iothread_args {
} cpumap;
u_int flags;
};
struct remote_domain_add_iothread_args {
remote_nonnull_domain dom;
u_int iothread_id;
u_int flags;
};
struct remote_domain_del_iothread_args {
remote_nonnull_domain dom;
u_int iothread_id;
u_int flags;
};
struct remote_domain_get_security_label_args {
remote_nonnull_domain dom;
};
@ -3023,4 +3033,6 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_PIN_IOTHREAD = 352,
REMOTE_PROC_DOMAIN_INTERFACE_ADDRESSES = 353,
REMOTE_PROC_DOMAIN_EVENT_CALLBACK_DEVICE_ADDED = 354,
REMOTE_PROC_DOMAIN_ADD_IOTHREAD = 355,
REMOTE_PROC_DOMAIN_DEL_IOTHREAD = 356,
};