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

[libvirt] [PATCH 2/8] save: wire up remote protocol



* src/remote/remote_driver.c (remote_driver): Add new callback.
* src/remote/remote_protocol.x (remote_procedure): New RPC.
(remote_domain_save_flags_args): New struct.
* src/remote_protocol-structs: Update.
---
 src/remote/remote_driver.c   |    1 +
 src/remote/remote_protocol.x |   11 ++++++++++-
 src/remote_protocol-structs  |    6 ++++++
 3 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 2d5dc15..b90fb08 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -4156,6 +4156,7 @@ static virDriver remote_driver = {
     .domainGetState = remoteDomainGetState, /* 0.9.2 */
     .domainGetControlInfo = remoteDomainGetControlInfo, /* 0.9.3 */
     .domainSave = remoteDomainSave, /* 0.3.0 */
+    .domainSaveFlags = remoteDomainSaveFlags, /* 0.9.4 */
     .domainRestore = remoteDomainRestore, /* 0.3.0 */
     .domainCoreDump = remoteDomainCoreDump, /* 0.3.0 */
     .domainScreenshot = remoteDomainScreenshot, /* 0.9.2 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index ee169fd..b0b4f6f 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -725,6 +725,13 @@ struct remote_domain_save_args {
     remote_nonnull_string to;
 };

+struct remote_domain_save_flags_args {
+    remote_nonnull_domain dom;
+    remote_nonnull_string to;
+    remote_string dxml;
+    unsigned int flags;
+};
+
 struct remote_domain_restore_args {
     remote_nonnull_string from;
 };
@@ -2383,7 +2390,9 @@ enum remote_procedure {
     REMOTE_PROC_NODE_GET_CPU_STATS = 227, /* skipgen skipgen */
     REMOTE_PROC_NODE_GET_MEMORY_STATS = 228, /* skipgen skipgen */
     REMOTE_PROC_DOMAIN_GET_CONTROL_INFO = 229, /* autogen autogen */
-    REMOTE_PROC_DOMAIN_GET_VCPU_PIN_INFO = 230  /* skipgen skipgen */
+    REMOTE_PROC_DOMAIN_GET_VCPU_PIN_INFO = 230, /* skipgen skipgen */
+
+    REMOTE_PROC_DOMAIN_SAVE_FLAGS = 231  /* 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 b2de8e9..a24fed9 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -416,6 +416,12 @@ struct remote_domain_save_args {
         remote_nonnull_domain      dom;
         remote_nonnull_string      to;
 };
+struct remote_domain_save_flags_args {
+        remote_nonnull_domain      dom;
+        remote_nonnull_string      to;
+        remote_string              dxml;
+        u_int                      flags;
+};
 struct remote_domain_restore_args {
         remote_nonnull_string      from;
 };
-- 
1.7.4.4


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