|
|
7a3408 |
From 10b9626e8866873f047662b6e2ecdccd3235d76d Mon Sep 17 00:00:00 2001
|
|
|
7a3408 |
Message-Id: <10b9626e8866873f047662b6e2ecdccd3235d76d@dist-git>
|
|
|
7a3408 |
From: Andrea Bolognani <abologna@redhat.com>
|
|
|
7a3408 |
Date: Tue, 11 Aug 2015 17:16:10 +0200
|
|
|
7a3408 |
Subject: [PATCH] cpu: Forbid model fallback in the ppc64 driver
|
|
|
7a3408 |
|
|
|
7a3408 |
Unlike what happens on x86, on ppc64 you can't mix and match CPU
|
|
|
7a3408 |
features to obtain the guest CPU you want regardless of the host
|
|
|
7a3408 |
CPU, so the concept of model fallback doesn't apply.
|
|
|
7a3408 |
|
|
|
7a3408 |
Make sure CPU definitions emitted by the driver, eg. as output of
|
|
|
7a3408 |
the cpuBaseline() and cpuUpdate() calls, reflect this fact.
|
|
|
7a3408 |
|
|
|
7a3408 |
(cherry picked from commit 344d1675e84be60c024080afd74f0da6d25c5f6b)
|
|
|
7a3408 |
|
|
|
7a3408 |
Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1250977
|
|
|
7a3408 |
|
|
|
7a3408 |
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
7a3408 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
7a3408 |
---
|
|
|
7a3408 |
src/cpu/cpu_ppc64.c | 2 ++
|
|
|
7a3408 |
1 file changed, 2 insertions(+)
|
|
|
7a3408 |
|
|
|
7a3408 |
diff --git a/src/cpu/cpu_ppc64.c b/src/cpu/cpu_ppc64.c
|
|
|
7a3408 |
index f24fc41..33fec8b 100644
|
|
|
7a3408 |
--- a/src/cpu/cpu_ppc64.c
|
|
|
7a3408 |
+++ b/src/cpu/cpu_ppc64.c
|
|
|
7a3408 |
@@ -670,6 +670,7 @@ ppc64DriverUpdate(virCPUDefPtr guest,
|
|
|
7a3408 |
case VIR_CPU_MODE_HOST_MODEL:
|
|
|
7a3408 |
case VIR_CPU_MODE_HOST_PASSTHROUGH:
|
|
|
7a3408 |
guest->match = VIR_CPU_MATCH_EXACT;
|
|
|
7a3408 |
+ guest->fallback = VIR_CPU_FALLBACK_FORBID;
|
|
|
7a3408 |
virCPUDefFreeModel(guest);
|
|
|
7a3408 |
return virCPUDefCopyModel(guest, host, true);
|
|
|
7a3408 |
|
|
|
7a3408 |
@@ -768,6 +769,7 @@ ppc64DriverBaseline(virCPUDefPtr *cpus,
|
|
|
7a3408 |
|
|
|
7a3408 |
cpu->type = VIR_CPU_TYPE_GUEST;
|
|
|
7a3408 |
cpu->match = VIR_CPU_MATCH_EXACT;
|
|
|
7a3408 |
+ cpu->fallback = VIR_CPU_FALLBACK_FORBID;
|
|
|
7a3408 |
|
|
|
7a3408 |
cleanup:
|
|
|
7a3408 |
ppc64MapFree(map);
|
|
|
7a3408 |
--
|
|
|
7a3408 |
2.5.0
|
|
|
7a3408 |
|