Signed-off-by: Collin Walling <wall...@linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiu...@linux.ibm.com>
---
 src/remote/remote_driver.c   |  1 +
 src/remote/remote_protocol.x | 20 +++++++++++++++++++-
 src/remote_protocol-structs  | 11 +++++++++++
 3 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index a4c60be3d7..10d10c5464 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -8107,6 +8107,7 @@ static virHypervisorDriver hypervisor_driver = {
     .domainSetLifecycleAction = remoteDomainSetLifecycleAction, /* 3.9.0 */
     .connectCompareHypervisorCPU = remoteConnectCompareHypervisorCPU, /* 4.4.0 
*/
     .connectBaselineHypervisorCPU = remoteConnectBaselineHypervisorCPU, /* 
4.4.0 */
+    .connectGetHypervisorCPUModelNames = 
remoteConnectGetHypervisorCPUModelNames, /* 9.2.0 */
     .nodeGetSEVInfo = remoteNodeGetSEVInfo, /* 4.5.0 */
     .domainGetLaunchSecurityInfo = remoteDomainGetLaunchSecurityInfo, /* 4.5.0 
*/
     .domainCheckpointCreateXML = remoteDomainCheckpointCreateXML, /* 5.6.0 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index 5d86a51116..ec179e618a 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -3646,6 +3646,18 @@ struct remote_connect_baseline_hypervisor_cpu_ret {
     remote_nonnull_string cpu;
 };
 
+struct remote_connect_get_hypervisor_cpu_model_names_args {
+    remote_string emulator;
+    remote_string arch;
+    remote_string machine;
+    remote_string virttype;
+    unsigned int flags;
+};
+
+struct remote_connect_get_hypervisor_cpu_model_names_ret {
+    remote_nonnull_string models;
+};
+
 struct remote_node_get_sev_info_args {
     int nparams;
     unsigned int flags;
@@ -6974,5 +6986,11 @@ enum remote_procedure {
      * @generate: none
      * @acl: domain:write
      */
-    REMOTE_PROC_DOMAIN_FD_ASSOCIATE = 443
+    REMOTE_PROC_DOMAIN_FD_ASSOCIATE = 443,
+
+    /**
+     * @generate: both
+     * @acl: connect:write
+     */
+    REMOTE_PROC_CONNECT_GET_HYPERVISOR_CPU_MODEL_NAMES = 444
 };
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index 3c6c230a16..947c95c832 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -3003,6 +3003,16 @@ struct remote_connect_baseline_hypervisor_cpu_args {
 struct remote_connect_baseline_hypervisor_cpu_ret {
         remote_nonnull_string      cpu;
 };
+struct remote_connect_get_hypervisor_cpu_model_names_args {
+        remote_string              emulator;
+        remote_string              arch;
+        remote_string              machine;
+        remote_string              virttype;
+        u_int                      flags;
+};
+struct remote_connect_get_hypervisor_cpu_model_names_ret {
+        remote_nonnull_string      models;
+};
 struct remote_node_get_sev_info_args {
         int                        nparams;
         u_int                      flags;
@@ -3717,4 +3727,5 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_RESTORE_PARAMS = 441,
         REMOTE_PROC_DOMAIN_ABORT_JOB_FLAGS = 442,
         REMOTE_PROC_DOMAIN_FD_ASSOCIATE = 443,
+        REMOTE_PROC_CONNECT_GET_HYPERVISOR_CPU_MODEL_NAMES = 444,
 };
-- 
2.39.0

Reply via email to