[libvirt] [PATCH 2/7] remote: Plumbing for virDomainSetIOThreads

John Ferlan jferlan at redhat.com
Thu Mar 19 17:08:23 UTC 2015


Add the necessary remote plumbing

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 src/remote/remote_driver.c   |  1 +
 src/remote/remote_protocol.x | 16 +++++++++++++++-
 src/remote_protocol-structs  |  6 ++++++
 3 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index e69f235..fed001c 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -8210,6 +8210,7 @@ static virHypervisorDriver hypervisor_driver = {
     .domainGetMaxVcpus = remoteDomainGetMaxVcpus, /* 0.3.0 */
     .domainGetIOThreadsInfo = remoteDomainGetIOThreadsInfo, /* 1.2.14 */
     .domainPinIOThread = remoteDomainPinIOThread, /* 1.2.14 */
+    .domainSetIOThreads = remoteDomainSetIOThreads, /* 1.2.14 */
     .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 eb862e1..19282ed 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -1212,6 +1212,12 @@ struct remote_domain_pin_iothread_args {
     unsigned int flags;
 };
 
+struct remote_domain_set_iothreads_args {
+    remote_nonnull_domain dom;
+    unsigned int niothreads;
+    unsigned int flags;
+};
+
 struct remote_domain_get_security_label_args {
     remote_nonnull_domain dom;
 };
@@ -5643,5 +5649,13 @@ 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_SET_IOTHREADS = 354
 };
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index b3e2e40..e046076 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -834,6 +834,11 @@ struct remote_domain_pin_iothread_args {
         } cpumap;
         u_int                      flags;
 };
+struct remote_domain_set_iothreads_args {
+        remote_nonnull_domain      dom;
+        u_int                      niothreads;
+        u_int                      flags;
+};
 struct remote_domain_get_security_label_args {
         remote_nonnull_domain      dom;
 };
@@ -3017,4 +3022,5 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_GET_IOTHREADS_INFO = 351,
         REMOTE_PROC_DOMAIN_PIN_IOTHREAD = 352,
         REMOTE_PROC_DOMAIN_INTERFACE_ADDRESSES = 353,
+        REMOTE_PROC_DOMAIN_SET_IOTHREADS = 354,
 };
-- 
2.1.0




More information about the libvir-list mailing list