Signed-off-by: Claudio Fontana <cfont...@suse.de>
---
 src/remote/remote_driver.c   |  1 +
 src/remote/remote_protocol.x | 14 +++++++++++++-
 src/remote_protocol-structs  |  8 ++++++++
 3 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 65fc19643a..423f5f9fb9 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -8449,6 +8449,7 @@ static virHypervisorDriver hypervisor_driver = {
     .domainSaveParams = remoteDomainSaveParams, /* 8.4.0 */
     .domainRestore = remoteDomainRestore, /* 0.3.0 */
     .domainRestoreFlags = remoteDomainRestoreFlags, /* 0.9.4 */
+    .domainRestoreParams = remoteDomainRestoreParams, /* 8.4.0 */
     .domainSaveImageGetXMLDesc = remoteDomainSaveImageGetXMLDesc, /* 0.9.4 */
     .domainSaveImageDefineXML = remoteDomainSaveImageDefineXML, /* 0.9.4 */
     .domainCoreDump = remoteDomainCoreDump, /* 0.3.0 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index ef52ff346a..085631c11b 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -999,6 +999,11 @@ struct remote_domain_restore_flags_args {
     unsigned int flags;
 };
 
+struct remote_domain_restore_params_args {
+    remote_typed_param params<REMOTE_DOMAIN_SAVE_PARAMS_MAX>;
+    unsigned int flags;
+};
+
 struct remote_domain_save_image_get_xml_desc_args {
     remote_nonnull_string file;
     unsigned int flags;
@@ -6935,5 +6940,12 @@ enum remote_procedure {
      * @generate: both
      * @acl: domain:hibernate
      */
-    REMOTE_PROC_DOMAIN_SAVE_PARAMS = 440
+    REMOTE_PROC_DOMAIN_SAVE_PARAMS = 440,
+
+    /**
+     * @generate: both
+     * @acl: domain:start
+     * @acl: domain:write
+     */
+    REMOTE_PROC_DOMAIN_RESTORE_PARAMS = 441
 };
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index f5e0a60396..4ffdce5679 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -579,6 +579,13 @@ struct remote_domain_restore_flags_args {
         remote_string              dxml;
         u_int                      flags;
 };
+struct remote_domain_restore_params_args {
+        struct {
+                u_int              params_len;
+                remote_typed_param * params_val;
+        } params;
+        u_int                      flags;
+};
 struct remote_domain_save_image_get_xml_desc_args {
         remote_nonnull_string      file;
         u_int                      flags;
@@ -3698,4 +3705,5 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_EVENT_MEMORY_DEVICE_SIZE_CHANGE = 438,
         REMOTE_PROC_DOMAIN_SET_LAUNCH_SECURITY_STATE = 439,
         REMOTE_PROC_DOMAIN_SAVE_PARAMS = 440,
+        REMOTE_PROC_DOMAIN_RESTORE_PARAMS = 441,
 };
-- 
2.35.3

Reply via email to