[PATCH 13/22] remote: Implement virConnectBaselineHypervisorCPU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
 src/remote/remote_driver.c   |  1 +
 src/remote/remote_protocol.x | 21 ++++++++++++++++++++-
 src/remote_protocol-structs  | 15 +++++++++++++++
 3 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index acefe8c457..d106a18510 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -8450,6 +8450,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 = {
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index 0aa123b5ac..ff28cec50f 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -3461,6 +3461,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. */
@@ -6154,5 +6167,11 @@ enum remote_procedure {
      * @generate: both
      * @acl: connect:write
      */
-    REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU = 392
+    REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU = 392,
+
+    /**
+     * @generate: both
+     * @acl: connect:write
+     */
+    REMOTE_PROC_CONNECT_BASELINE_HYPERVISOR_CPU = 393
 };
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index 64e48c52ba..99251ac0e8 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -2888,6 +2888,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,
@@ -3281,4 +3295,5 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_SET_LIFECYCLE_ACTION = 390,
         REMOTE_PROC_STORAGE_POOL_LOOKUP_BY_TARGET_PATH = 391,
         REMOTE_PROC_CONNECT_COMPARE_HYPERVISOR_CPU = 392,
+        REMOTE_PROC_CONNECT_BASELINE_HYPERVISOR_CPU = 393,
 };
-- 
2.17.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux