diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 8695046b71..3cee53fe4f 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -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 = { diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x index b23c93514a..db68fb8d58 100644 --- a/src/remote/remote_protocol.x +++ b/src/remote/remote_protocol.x @@ -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 }; diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs index 1b4fbc5d4b..728f8988ae 100644 --- a/src/remote_protocol-structs +++ b/src/remote_protocol-structs @@ -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, };