提交 e6021034 编写于 作者: J Jiri Denemark

remote: Implement virConnectBaselineHypervisorCPU

Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 7d0a1efc
......@@ -8451,6 +8451,7 @@ static virHypervisorDriver hypervisor_driver = {
.domainSetBlockThreshold = remoteDomainSetBlockThreshold, /* 3.2.0 */
.domainSetLifecycleAction = remoteDomainSetLifecycleAction, /* 3.9.0 */
.connectCompareHypervisorCPU = remoteConnectCompareHypervisorCPU, /* 4.4.0 */
.connectBaselineHypervisorCPU = remoteConnectBaselineHypervisorCPU, /* 4.4.0 */
};
static virNetworkDriver network_driver = {
......
......@@ -3467,6 +3467,19 @@ struct remote_connect_compare_hypervisor_cpu_ret {
int result;
};
struct remote_connect_baseline_hypervisor_cpu_args {
remote_string emulator;
remote_string arch;
remote_string machine;
remote_string virttype;
remote_nonnull_string xmlCPUs<REMOTE_CPU_BASELINE_MAX>; /* (const char **) */
unsigned int flags;
};
struct remote_connect_baseline_hypervisor_cpu_ret {
remote_nonnull_string cpu;
};
/*----- Protocol. -----*/
/* Define the program number, protocol version and procedure numbers here. */
......@@ -6168,5 +6181,11 @@ enum remote_procedure {
* @generate: both
* @acl: connect:write
*/
REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU = 393
REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU = 393,
/**
* @generate: both
* @acl: connect:write
*/
REMOTE_PROC_CONNECT_BASELINE_HYPERVISOR_CPU = 394
};
......@@ -2893,6 +2893,20 @@ struct remote_connect_compare_hypervisor_cpu_args {
struct remote_connect_compare_hypervisor_cpu_ret {
int result;
};
struct remote_connect_baseline_hypervisor_cpu_args {
remote_string emulator;
remote_string arch;
remote_string machine;
remote_string virttype;
struct {
u_int xmlCPUs_len;
remote_nonnull_string * xmlCPUs_val;
} xmlCPUs;
u_int flags;
};
struct remote_connect_baseline_hypervisor_cpu_ret {
remote_nonnull_string cpu;
};
enum remote_procedure {
REMOTE_PROC_CONNECT_OPEN = 1,
REMOTE_PROC_CONNECT_CLOSE = 2,
......@@ -3287,4 +3301,5 @@ enum remote_procedure {
REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_TARGET_PATH = 391,
REMOTE_PROC_DOMAIN_DETACH_DEVICE_ALIAS = 392,
REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU = 393,
REMOTE_PROC_CONNECT_BASELINE_HYPERVISOR_CPU = 394,
};
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册