mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 01:47:24 +03:00
remote: Add RPC support for the virDomainSaveParams API
Signed-off-by: Claudio Fontana <cfontana@suse.de> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
f9a8e25b15
commit
fbfbcf1729
@ -8446,6 +8446,7 @@ static virHypervisorDriver hypervisor_driver = {
|
|||||||
.domainGetControlInfo = remoteDomainGetControlInfo, /* 0.9.3 */
|
.domainGetControlInfo = remoteDomainGetControlInfo, /* 0.9.3 */
|
||||||
.domainSave = remoteDomainSave, /* 0.3.0 */
|
.domainSave = remoteDomainSave, /* 0.3.0 */
|
||||||
.domainSaveFlags = remoteDomainSaveFlags, /* 0.9.4 */
|
.domainSaveFlags = remoteDomainSaveFlags, /* 0.9.4 */
|
||||||
|
.domainSaveParams = remoteDomainSaveParams, /* 8.4.0 */
|
||||||
.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 */
|
.domainSaveImageGetXMLDesc = remoteDomainSaveImageGetXMLDesc, /* 0.9.4 */
|
||||||
|
@ -230,6 +230,9 @@ const REMOTE_NODE_MEMORY_PARAMETERS_MAX = 64;
|
|||||||
/* Upper limit on migrate parameters */
|
/* Upper limit on migrate parameters */
|
||||||
const REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX = 64;
|
const REMOTE_DOMAIN_MIGRATE_PARAM_LIST_MAX = 64;
|
||||||
|
|
||||||
|
/* Upper limit on save/restore parameters */
|
||||||
|
const REMOTE_DOMAIN_SAVE_PARAMS_MAX = 64;
|
||||||
|
|
||||||
/* Upper limit on number of job stats */
|
/* Upper limit on number of job stats */
|
||||||
const REMOTE_DOMAIN_JOB_STATS_MAX = 64;
|
const REMOTE_DOMAIN_JOB_STATS_MAX = 64;
|
||||||
|
|
||||||
@ -980,6 +983,12 @@ struct remote_domain_save_flags_args {
|
|||||||
unsigned int flags;
|
unsigned int flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct remote_domain_save_params_args {
|
||||||
|
remote_nonnull_domain dom;
|
||||||
|
remote_typed_param params<REMOTE_DOMAIN_SAVE_PARAMS_MAX>;
|
||||||
|
unsigned int flags;
|
||||||
|
};
|
||||||
|
|
||||||
struct remote_domain_restore_args {
|
struct remote_domain_restore_args {
|
||||||
remote_nonnull_string from;
|
remote_nonnull_string from;
|
||||||
};
|
};
|
||||||
@ -6920,5 +6929,11 @@ enum remote_procedure {
|
|||||||
* @generate: both
|
* @generate: both
|
||||||
* @acl: domain:write
|
* @acl: domain:write
|
||||||
*/
|
*/
|
||||||
REMOTE_PROC_DOMAIN_SET_LAUNCH_SECURITY_STATE = 439
|
REMOTE_PROC_DOMAIN_SET_LAUNCH_SECURITY_STATE = 439,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @generate: both
|
||||||
|
* @acl: domain:hibernate
|
||||||
|
*/
|
||||||
|
REMOTE_PROC_DOMAIN_SAVE_PARAMS = 440
|
||||||
};
|
};
|
||||||
|
@ -563,6 +563,14 @@ struct remote_domain_save_flags_args {
|
|||||||
remote_string dxml;
|
remote_string dxml;
|
||||||
u_int flags;
|
u_int flags;
|
||||||
};
|
};
|
||||||
|
struct remote_domain_save_params_args {
|
||||||
|
remote_nonnull_domain dom;
|
||||||
|
struct {
|
||||||
|
u_int params_len;
|
||||||
|
remote_typed_param * params_val;
|
||||||
|
} params;
|
||||||
|
u_int flags;
|
||||||
|
};
|
||||||
struct remote_domain_restore_args {
|
struct remote_domain_restore_args {
|
||||||
remote_nonnull_string from;
|
remote_nonnull_string from;
|
||||||
};
|
};
|
||||||
@ -3689,4 +3697,5 @@ enum remote_procedure {
|
|||||||
REMOTE_PROC_NETWORK_CREATE_XML_FLAGS = 437,
|
REMOTE_PROC_NETWORK_CREATE_XML_FLAGS = 437,
|
||||||
REMOTE_PROC_DOMAIN_EVENT_MEMORY_DEVICE_SIZE_CHANGE = 438,
|
REMOTE_PROC_DOMAIN_EVENT_MEMORY_DEVICE_SIZE_CHANGE = 438,
|
||||||
REMOTE_PROC_DOMAIN_SET_LAUNCH_SECURITY_STATE = 439,
|
REMOTE_PROC_DOMAIN_SET_LAUNCH_SECURITY_STATE = 439,
|
||||||
|
REMOTE_PROC_DOMAIN_SAVE_PARAMS = 440,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user