[PATCH v2 2/4] Specify remote protocol for virDomainSendProcessSignal

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

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

* src/remote/remote_protocol.x: message definition
* src/remote/remote_driver.c: Register driver function
* src/remote_protocol-structs: Test case

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 src/remote/remote_driver.c   |  1 +
 src/remote/remote_protocol.x | 10 +++++++++-
 src/remote_protocol-structs  |  7 +++++++
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 49d89be..25f20fc 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -6124,6 +6124,7 @@ static virDriver remote_driver = {
     .domainMigrateFinish3 = remoteDomainMigrateFinish3, /* 0.9.2 */
     .domainMigrateConfirm3 = remoteDomainMigrateConfirm3, /* 0.9.2 */
     .domainSendKey = remoteDomainSendKey, /* 0.9.3 */
+    .domainSendProcessSignal = remoteDomainSendProcessSignal, /* 1.0.1 */
     .domainBlockJobAbort = remoteDomainBlockJobAbort, /* 0.9.4 */
     .domainGetBlockJobInfo = remoteDomainGetBlockJobInfo, /* 0.9.4 */
     .domainBlockJobSetSpeed = remoteDomainBlockJobSetSpeed, /* 0.9.4 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index 31567e2..bdad9f0 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -1019,6 +1019,13 @@ struct remote_domain_send_key_args {
     unsigned int flags;
 };
 
+struct remote_domain_send_process_signal_args {
+    remote_nonnull_domain dom;
+    hyper pid_value;
+    unsigned int signum;
+    unsigned int flags;
+};
+
 struct remote_domain_set_vcpus_args {
     remote_nonnull_domain dom;
     unsigned int nvcpus;
@@ -3034,7 +3041,8 @@ enum remote_procedure {
     REMOTE_PROC_NETWORK_UPDATE = 291, /* autogen autogen priority:high */
     REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND_DISK = 292, /* autogen autogen */
     REMOTE_PROC_NODE_GET_CPU_MAP = 293, /* skipgen skipgen */
-    REMOTE_PROC_DOMAIN_FSTRIM = 294 /* autogen autogen */
+    REMOTE_PROC_DOMAIN_FSTRIM = 294, /* autogen autogen */
+    REMOTE_PROC_DOMAIN_SEND_PROCESS_SIGNAL = 295 /* autogen autogen */
 
     /*
      * Notice how the entries are grouped in sets of 10 ?
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index d0d4f53..e7d05b8 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -672,6 +672,12 @@ struct remote_domain_send_key_args {
         } keycodes;
         u_int                      flags;
 };
+struct remote_domain_send_process_signal_args {
+        remote_nonnull_domain      dom;
+        int64_t                    pid_value;
+        u_int                      signum;
+        u_int                      flags;
+};
 struct remote_domain_set_vcpus_args {
         remote_nonnull_domain      dom;
         u_int                      nvcpus;
@@ -2440,4 +2446,5 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_EVENT_PMSUSPEND_DISK = 292,
         REMOTE_PROC_NODE_GET_CPU_MAP = 293,
         REMOTE_PROC_DOMAIN_FSTRIM = 294,
+        REMOTE_PROC_DOMAIN_SEND_PROCESS_SIGNAL = 295,
 };
-- 
1.7.11.7

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]