remote: Implement virConnectCompareHypervisorCPU

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Jiri Denemark committed 2018-05-28 15:58:05 +02:00
1 parent 24a41aa643
commit bbe1ad5b6c
3 files changed
+34 -2

No files matched your search

+2 -1
View File
@@ -8449,7 +8449,8 @@ static virHypervisorDriver hypervisor_driver = {
.domainSetGuestVcpus = remoteDomainSetGuestVcpus, /* 2.0.0 */
.domainSetVcpu = remoteDomainSetVcpu, /* 3.1.0 */
.domainSetBlockThreshold = remoteDomainSetBlockThreshold, /* 3.2.0 */
.domainSetLifecycleAction = remoteDomainSetLifecycleAction /* 3.9.0 */
.domainSetLifecycleAction = remoteDomainSetLifecycleAction, /* 3.9.0 */
.connectCompareHypervisorCPU = remoteConnectCompareHypervisorCPU, /* 4.4.0 */
};
static virNetworkDriver network_driver = {
+20 -1
View File
@@ -3454,6 +3454,19 @@ struct remote_domain_set_lifecycle_action_args {
unsigned int flags;
};
struct remote_connect_compare_hypervisor_cpu_args {
remote_string emulator;
remote_string arch;
remote_string machine;
remote_string virttype;
remote_nonnull_string xmlCPU;
unsigned int flags;
};
struct remote_connect_compare_hypervisor_cpu_ret {
int result;
};
/*----- Protocol. -----*/
/* Define the program number, protocol version and procedure numbers here. */
@@ -6149,5 +6162,11 @@ enum remote_procedure {
* @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
* @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
*/
REMOTE_PROC_DOMAIN_DETACH_DEVICE_ALIAS = 392
REMOTE_PROC_DOMAIN_DETACH_DEVICE_ALIAS = 392,
/**
* @generate: both
* @acl: connect:write
*/
REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU = 393
};
+12
View File
@@ -2882,6 +2882,17 @@ struct remote_domain_set_lifecycle_action_args {
u_int action;
u_int flags;
};
struct remote_connect_compare_hypervisor_cpu_args {
remote_string emulator;
remote_string arch;
remote_string machine;
remote_string virttype;
remote_nonnull_string xmlCPU;
u_int flags;
};
struct remote_connect_compare_hypervisor_cpu_ret {
int result;
};
enum remote_procedure {
REMOTE_PROC_CONNECT_OPEN = 1,
REMOTE_PROC_CONNECT_CLOSE = 2,
@@ -3275,4 +3286,5 @@ enum remote_procedure {
REMOTE_PROC_DOMAIN_SET_LIFECYCLE_ACTION = 390,
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_TARGET_PATH = 391,
REMOTE_PROC_DOMAIN_DETACH_DEVICE_ALIAS = 392,
REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU = 393,
};