|
|
c313de |
From 161668ec1a5e6b5cba0136ef50926b5c53802941 Mon Sep 17 00:00:00 2001
|
|
|
c313de |
Message-Id: <161668ec1a5e6b5cba0136ef50926b5c53802941@dist-git>
|
|
|
c313de |
From: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c313de |
Date: Fri, 21 Jun 2019 09:25:04 +0200
|
|
|
c313de |
Subject: [PATCH] qemu_capabilities: Introduce virQEMUCapsGetCPUModelInfo
|
|
|
c313de |
MIME-Version: 1.0
|
|
|
c313de |
Content-Type: text/plain; charset=UTF-8
|
|
|
c313de |
Content-Transfer-Encoding: 8bit
|
|
|
c313de |
|
|
|
c313de |
This is a simple wrapper around virQEMUCapsGetHostCPUData usable in
|
|
|
c313de |
tests for getting qemuMonitorCPUModelInfoPtr from QEMU caps.
|
|
|
c313de |
|
|
|
c313de |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c313de |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
c313de |
(cherry picked from commit 8aa47cc072fb9a3a8e8b15c6509aae648f5c24e0)
|
|
|
c313de |
|
|
|
c313de |
https://bugzilla.redhat.com/show_bug.cgi?id=1686895
|
|
|
c313de |
|
|
|
c313de |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c313de |
Message-Id: <4e467c308f24313e69e21c637663f6744482b266.1561068591.git.jdenemar@redhat.com>
|
|
|
c313de |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
c313de |
---
|
|
|
c313de |
src/qemu/qemu_capabilities.c | 10 ++++++++++
|
|
|
c313de |
src/qemu/qemu_capspriv.h | 4 ++++
|
|
|
c313de |
2 files changed, 14 insertions(+)
|
|
|
c313de |
|
|
|
c313de |
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
|
|
|
c313de |
index 5a7160d02e..942cbf272d 100644
|
|
|
c313de |
--- a/src/qemu/qemu_capabilities.c
|
|
|
c313de |
+++ b/src/qemu/qemu_capabilities.c
|
|
|
c313de |
@@ -3049,6 +3049,16 @@ virQEMUCapsInitHostCPUModel(virQEMUCapsPtr qemuCaps,
|
|
|
c313de |
}
|
|
|
c313de |
|
|
|
c313de |
|
|
|
c313de |
+qemuMonitorCPUModelInfoPtr
|
|
|
c313de |
+virQEMUCapsGetCPUModelInfo(virQEMUCapsPtr qemuCaps,
|
|
|
c313de |
+ virDomainVirtType type)
|
|
|
c313de |
+{
|
|
|
c313de |
+ virQEMUCapsHostCPUDataPtr cpuData = virQEMUCapsGetHostCPUData(qemuCaps, type);
|
|
|
c313de |
+
|
|
|
c313de |
+ return cpuData->info;
|
|
|
c313de |
+}
|
|
|
c313de |
+
|
|
|
c313de |
+
|
|
|
c313de |
void
|
|
|
c313de |
virQEMUCapsSetCPUModelInfo(virQEMUCapsPtr qemuCaps,
|
|
|
c313de |
virDomainVirtType type,
|
|
|
c313de |
diff --git a/src/qemu/qemu_capspriv.h b/src/qemu/qemu_capspriv.h
|
|
|
c313de |
index 70cdbbc504..c3b7f934a9 100644
|
|
|
c313de |
--- a/src/qemu/qemu_capspriv.h
|
|
|
c313de |
+++ b/src/qemu/qemu_capspriv.h
|
|
|
c313de |
@@ -75,6 +75,10 @@ virQEMUCapsInitCPUModel(virQEMUCapsPtr qemuCaps,
|
|
|
c313de |
void
|
|
|
c313de |
virQEMUCapsInitQMPBasicArch(virQEMUCapsPtr qemuCaps);
|
|
|
c313de |
|
|
|
c313de |
+qemuMonitorCPUModelInfoPtr
|
|
|
c313de |
+virQEMUCapsGetCPUModelInfo(virQEMUCapsPtr qemuCaps,
|
|
|
c313de |
+ virDomainVirtType type);
|
|
|
c313de |
+
|
|
|
c313de |
void
|
|
|
c313de |
virQEMUCapsSetCPUModelInfo(virQEMUCapsPtr qemuCaps,
|
|
|
c313de |
virDomainVirtType type,
|
|
|
c313de |
--
|
|
|
c313de |
2.22.0
|
|
|
c313de |
|