render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
459f93
From 46f4cfe513f0f893c862dca7f02ed7d7932b2115 Mon Sep 17 00:00:00 2001
459f93
Message-Id: <46f4cfe513f0f893c862dca7f02ed7d7932b2115@dist-git>
459f93
From: Jiri Denemark <jdenemar@redhat.com>
459f93
Date: Tue, 26 Apr 2022 12:50:41 +0200
459f93
Subject: [PATCH] cpu_map: Disable cpu64-rhel* for host-model and baseline
459f93
459f93
These ancient RHEL-only CPU models should not really be used by any CPU
459f93
definition created by libvirt. We keep them just for backwards
459f93
compatibility with domains which might still be using them.
459f93
459f93
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
459f93
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
459f93
(cherry picked from commit d2e4d66be35cd04da72e5f5129a8a4da6a931505)
459f93
459f93
https://bugzilla.redhat.com/show_bug.cgi?id=1851227
459f93
459f93
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
459f93
---
459f93
 src/cpu_map/x86_cpu64-rhel5.xml                        | 2 +-
459f93
 src/cpu_map/x86_cpu64-rhel6.xml                        | 2 +-
459f93
 tests/cputestdata/x86_64-baseline-no-vendor-result.xml | 3 ++-
459f93
 3 files changed, 4 insertions(+), 3 deletions(-)
459f93
459f93
diff --git a/src/cpu_map/x86_cpu64-rhel5.xml b/src/cpu_map/x86_cpu64-rhel5.xml
459f93
index be6bcdb7a6..7402b7603c 100644
459f93
--- a/src/cpu_map/x86_cpu64-rhel5.xml
459f93
+++ b/src/cpu_map/x86_cpu64-rhel5.xml
459f93
@@ -1,6 +1,6 @@
459f93
 <cpus>
459f93
   <model name='cpu64-rhel5'>
459f93
-    <decode host='on' guest='on'/>
459f93
+    <decode host='off' guest='off'/>
459f93
     <feature name='apic'/>
459f93
     <feature name='clflush'/>
459f93
     <feature name='cmov'/>
459f93
diff --git a/src/cpu_map/x86_cpu64-rhel6.xml b/src/cpu_map/x86_cpu64-rhel6.xml
459f93
index c62b1b5575..061939c733 100644
459f93
--- a/src/cpu_map/x86_cpu64-rhel6.xml
459f93
+++ b/src/cpu_map/x86_cpu64-rhel6.xml
459f93
@@ -1,6 +1,6 @@
459f93
 <cpus>
459f93
   <model name='cpu64-rhel6'>
459f93
-    <decode host='on' guest='on'/>
459f93
+    <decode host='off' guest='off'/>
459f93
     <feature name='apic'/>
459f93
     <feature name='clflush'/>
459f93
     <feature name='cmov'/>
459f93
diff --git a/tests/cputestdata/x86_64-baseline-no-vendor-result.xml b/tests/cputestdata/x86_64-baseline-no-vendor-result.xml
459f93
index 00e03b2152..4b4921cf93 100644
459f93
--- a/tests/cputestdata/x86_64-baseline-no-vendor-result.xml
459f93
+++ b/tests/cputestdata/x86_64-baseline-no-vendor-result.xml
459f93
@@ -1,3 +1,4 @@
459f93
 <cpu mode='custom' match='exact'>
459f93
-  <model fallback='allow'>cpu64-rhel6</model>
459f93
+  <model fallback='allow'>kvm64</model>
459f93
+  <feature policy='require' name='lahf_lm'/>
459f93
 </cpu>
459f93
-- 
459f93
2.35.1
459f93