[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH v4 7/9] remote: Add support for AddIOThread and DelIOThread



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

Signed-off-by: John Ferlan <jferlan 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 9c3b53f..31417e8 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -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 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index b02e58c..49b7ddd 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;
 };
@@ -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
 };
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index 2b6b47a..116b572 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;
 };
@@ -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,
 };
-- 
2.1.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]