[libvirt] [PATCH v3 4/6] remote: Add support for AddIOThread and DelIOThread

John Ferlan jferlan at redhat.com
Wed Apr 15 01:18:24 UTC 2015


Add remote support for the add/delete IOThread API's

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 src/remote/remote_driver.c   |  2 ++
 src/remote/remote_protocol.x | 30 +++++++++++++++++++++++++++++-
 src/remote_protocol-structs  | 12 ++++++++++++
 3 files changed, 43 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..c0b3eff 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -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;
 };
@@ -5643,5 +5655,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..95b9bdb 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -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;
 };
@@ -3017,4 +3027,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




More information about the libvir-list mailing list