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

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



* src/remote/remote_driver.c (remote_driver): Add new callback.
* src/remote/remote_protocol.x (remote_procdure): New RPC.
(remote_domain_restore_flags_args): New struct.
* src/remote_protocol-structs: Update.
---

Again, I'm debating whether this should be part of 2/8.

 src/remote/remote_driver.c   |    1 +
 src/remote/remote_protocol.x |    9 ++++++++-
 src/remote_protocol-structs  |    6 ++++++
 3 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 8907bcc..49d632b 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -4164,6 +4164,7 @@ static virDriver remote_driver = {
     .domainSave = remoteDomainSave, /* 0.3.0 */
     .domainSaveFlags = remoteDomainSaveFlags, /* 0.9.4 */
     .domainRestore = remoteDomainRestore, /* 0.3.0 */
+    .domainRestoreFlags = remoteDomainRestoreFlags, /* 0.9.4 */
     .domainCoreDump = remoteDomainCoreDump, /* 0.3.0 */
     .domainScreenshot = remoteDomainScreenshot, /* 0.9.2 */
     .domainSetVcpus = remoteDomainSetVcpus, /* 0.3.0 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index b0b4f6f..ac670df 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -736,6 +736,12 @@ struct remote_domain_restore_args {
     remote_nonnull_string from;
 };

+struct remote_domain_restore_flags_args {
+    remote_nonnull_string from;
+    remote_string dxml;
+    unsigned int flags;
+};
+
 struct remote_domain_core_dump_args {
     remote_nonnull_domain dom;
     remote_nonnull_string to;
@@ -2392,7 +2398,8 @@ enum remote_procedure {
     REMOTE_PROC_DOMAIN_GET_CONTROL_INFO = 229, /* autogen autogen */
     REMOTE_PROC_DOMAIN_GET_VCPU_PIN_INFO = 230, /* skipgen skipgen */

-    REMOTE_PROC_DOMAIN_SAVE_FLAGS = 231  /* autogen autogen */
+    REMOTE_PROC_DOMAIN_SAVE_FLAGS = 231,  /* autogen autogen */
+    REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 232  /* 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 8e90287..4e125fd 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -438,6 +438,11 @@ struct remote_domain_save_flags_args {
 struct remote_domain_restore_args {
         remote_nonnull_string      from;
 };
+struct remote_domain_restore_flags_args {
+        remote_nonnull_string      from;
+        remote_string              dxml;
+        u_int                      flags;
+};
 struct remote_domain_core_dump_args {
         remote_nonnull_domain      dom;
         remote_nonnull_string      to;
@@ -1866,4 +1871,5 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_GET_CONTROL_INFO = 229,
         REMOTE_PROC_DOMAIN_GET_VCPU_PIN_INFO = 230,
         REMOTE_PROC_DOMAIN_SAVE_FLAGS = 231,
+        REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 232,
 };
-- 
1.7.4.4


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