提交 0696beca 编写于 作者: E Eric Blake

save: wire up remote protocol

* src/remote/remote_driver.c (remote_driver): Add new callbacks.
* src/remote/remote_protocol.x (remote_procedure): New RPCs.
(remote_domain_save_image_get_xml_desc_args)
(remote_domain_save_image_get_xml_desc_ret)
(remote_domain_save_image_define_xml_args): New structs.
* src/remote_protocol-structs: Update.
上级 d2a929d4
...@@ -4169,6 +4169,8 @@ static virDriver remote_driver = { ...@@ -4169,6 +4169,8 @@ static virDriver remote_driver = {
.domainSaveFlags = remoteDomainSaveFlags, /* 0.9.4 */ .domainSaveFlags = remoteDomainSaveFlags, /* 0.9.4 */
.domainRestore = remoteDomainRestore, /* 0.3.0 */ .domainRestore = remoteDomainRestore, /* 0.3.0 */
.domainRestoreFlags = remoteDomainRestoreFlags, /* 0.9.4 */ .domainRestoreFlags = remoteDomainRestoreFlags, /* 0.9.4 */
.domainSaveImageGetXMLDesc = remoteDomainSaveImageGetXMLDesc, /* 0.9.4 */
.domainSaveImageDefineXML = remoteDomainSaveImageDefineXML, /* 0.9.4 */
.domainCoreDump = remoteDomainCoreDump, /* 0.3.0 */ .domainCoreDump = remoteDomainCoreDump, /* 0.3.0 */
.domainScreenshot = remoteDomainScreenshot, /* 0.9.2 */ .domainScreenshot = remoteDomainScreenshot, /* 0.9.2 */
.domainSetVcpus = remoteDomainSetVcpus, /* 0.3.0 */ .domainSetVcpus = remoteDomainSetVcpus, /* 0.3.0 */
......
...@@ -747,6 +747,21 @@ struct remote_domain_restore_flags_args { ...@@ -747,6 +747,21 @@ struct remote_domain_restore_flags_args {
unsigned int flags; unsigned int flags;
}; };
struct remote_domain_save_image_get_xml_desc_args {
remote_nonnull_string file;
unsigned int flags;
};
struct remote_domain_save_image_get_xml_desc_ret {
remote_nonnull_string xml;
};
struct remote_domain_save_image_define_xml_args {
remote_nonnull_string file;
remote_nonnull_string dxml;
unsigned int flags;
};
struct remote_domain_core_dump_args { struct remote_domain_core_dump_args {
remote_nonnull_domain dom; remote_nonnull_domain dom;
remote_nonnull_string to; remote_nonnull_string to;
...@@ -2411,7 +2426,9 @@ enum remote_procedure { ...@@ -2411,7 +2426,9 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_UNDEFINE_FLAGS = 231, /* autogen autogen */ REMOTE_PROC_DOMAIN_UNDEFINE_FLAGS = 231, /* autogen autogen */
REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232, /* autogen autogen */ REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232, /* autogen autogen */
REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233, /* autogen autogen */ REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233, /* autogen autogen */
REMOTE_PROC_DOMAIN_DESTROY_FLAGS = 234 /* autogen autogen */ REMOTE_PROC_DOMAIN_DESTROY_FLAGS = 234, /* autogen autogen */
REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 235, /* autogen autogen */
REMOTE_PROC_DOMAIN_SAVE_IMAGE_DEFINE_XML = 236 /* autogen autogen */
/* /*
* Notice how the entries are grouped in sets of 10 ? * Notice how the entries are grouped in sets of 10 ?
......
...@@ -447,6 +447,18 @@ struct remote_domain_restore_flags_args { ...@@ -447,6 +447,18 @@ struct remote_domain_restore_flags_args {
remote_string dxml; remote_string dxml;
u_int flags; u_int flags;
}; };
struct remote_domain_save_image_get_xml_desc_args {
remote_nonnull_string file;
u_int flags;
};
struct remote_domain_save_image_get_xml_desc_ret {
remote_nonnull_string xml;
};
struct remote_domain_save_image_define_xml_args {
remote_nonnull_string file;
remote_nonnull_string dxml;
u_int flags;
};
struct remote_domain_core_dump_args { struct remote_domain_core_dump_args {
remote_nonnull_domain dom; remote_nonnull_domain dom;
remote_nonnull_string to; remote_nonnull_string to;
...@@ -1882,4 +1894,6 @@ enum remote_procedure { ...@@ -1882,4 +1894,6 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232, REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232,
REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233, REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233,
REMOTE_PROC_DOMAIN_DESTROY_FLAGS = 234, REMOTE_PROC_DOMAIN_DESTROY_FLAGS = 234,
REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 235,
REMOTE_PROC_DOMAIN_SAVE_IMAGE_DEFINE_XML = 236,
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册