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