mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
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.
This commit is contained in:
parent
d2a929d4b3
commit
0696becacf
@ -4169,6 +4169,8 @@ static virDriver remote_driver = {
|
||||
.domainSaveFlags = remoteDomainSaveFlags, /* 0.9.4 */
|
||||
.domainRestore = remoteDomainRestore, /* 0.3.0 */
|
||||
.domainRestoreFlags = remoteDomainRestoreFlags, /* 0.9.4 */
|
||||
.domainSaveImageGetXMLDesc = remoteDomainSaveImageGetXMLDesc, /* 0.9.4 */
|
||||
.domainSaveImageDefineXML = remoteDomainSaveImageDefineXML, /* 0.9.4 */
|
||||
.domainCoreDump = remoteDomainCoreDump, /* 0.3.0 */
|
||||
.domainScreenshot = remoteDomainScreenshot, /* 0.9.2 */
|
||||
.domainSetVcpus = remoteDomainSetVcpus, /* 0.3.0 */
|
||||
|
@ -747,6 +747,21 @@ struct remote_domain_restore_flags_args {
|
||||
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 {
|
||||
remote_nonnull_domain dom;
|
||||
remote_nonnull_string to;
|
||||
@ -2406,12 +2421,14 @@ 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_UNDEFINE_FLAGS = 231, /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232, /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233, /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_DESTROY_FLAGS = 234 /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_UNDEFINE_FLAGS = 231, /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232, /* autogen autogen */
|
||||
REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233, /* 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 ?
|
||||
|
@ -447,6 +447,18 @@ struct remote_domain_restore_flags_args {
|
||||
remote_string dxml;
|
||||
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 {
|
||||
remote_nonnull_domain dom;
|
||||
remote_nonnull_string to;
|
||||
@ -1882,4 +1894,6 @@ enum remote_procedure {
|
||||
REMOTE_PROC_DOMAIN_SAVE_FLAGS = 232,
|
||||
REMOTE_PROC_DOMAIN_RESTORE_FLAGS = 233,
|
||||
REMOTE_PROC_DOMAIN_DESTROY_FLAGS = 234,
|
||||
REMOTE_PROC_DOMAIN_SAVE_IMAGE_GET_XML_DESC = 235,
|
||||
REMOTE_PROC_DOMAIN_SAVE_IMAGE_DEFINE_XML = 236,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user