]> xenbits.xensource.com Git - libvirt.git/commitdiff
remote: Implement virConnectBaselineHypervisorCPU
authorJiri Denemark <jdenemar@redhat.com>
Wed, 25 Apr 2018 11:43:24 +0000 (13:43 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 28 May 2018 13:59:10 +0000 (15:59 +0200)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/remote/remote_driver.c
src/remote/remote_protocol.x
src/remote_protocol-structs

index 3cee53fe4f4bc1bd24ff95d5e355952be228df1b..3be30bd79a887d47cc7d8dcf63fa40b90534364a 100644 (file)
@@ -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 = {
index db68fb8d5859da14c68155d0efcdc3dddec7af67..a0ab7e9febe9f53f475651c5de29c30878407c46 100644 (file)
@@ -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
 };
index 728f8988ae4170b09e15d304a15b1f8d80694819..0c4cfc6232dc7fa3ad8b29e096f534730b28e6d2 100644 (file)
@@ -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,
 };