Add remote support for the add/delete IOThread API's
Signed-off-by: John Ferlan <jferlan(a)redhat.com>
---
src/remote/remote_driver.c | 2 ++
src/remote/remote_protocol.x | 31 ++++++++++++++++++++++++++++++-
src/remote_protocol-structs | 13 +++++++++++++
3 files changed, 45 insertions(+), 1 deletion(-)
diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index b275d86..b2b5a13 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -8210,6 +8210,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 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index d90e6b5..4b9e815 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -1212,6 +1212,19 @@ struct remote_domain_pin_iothread_args {
unsigned int flags;
};
+struct remote_domain_add_iothread_args {
+ remote_nonnull_domain dom;
+ unsigned int iothread_id;
+ remote_string name;
+ 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;
};
@@ -5643,5 +5656,21 @@ enum remote_procedure {
* @generate: none
* @acl: domain:read
*/
- REMOTE_PROC_DOMAIN_INTERFACE_ADDRESSES = 353
+ REMOTE_PROC_DOMAIN_INTERFACE_ADDRESSES = 353,
+
+ /**
+ * @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 = 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_DEL_IOTHREAD = 355
};
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index e614f77..b4e4756 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -834,6 +834,17 @@ struct remote_domain_pin_iothread_args {
} cpumap;
u_int flags;
};
+struct remote_domain_add_iothread_args {
+ remote_nonnull_domain dom;
+ u_int iothread_id;
+ remote_string name;
+ 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;
};
@@ -3017,4 +3028,6 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_GET_IOTHREAD_INFO = 351,
REMOTE_PROC_DOMAIN_PIN_IOTHREAD = 352,
REMOTE_PROC_DOMAIN_INTERFACE_ADDRESSES = 353,
+ REMOTE_PROC_DOMAIN_ADD_IOTHREAD = 354,
+ REMOTE_PROC_DOMAIN_DEL_IOTHREAD = 355,
};
--
2.1.0