]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
cpu_map: Disable cpu64-rhel* for host-model and baseline
authorJiri Denemark <jdenemar@redhat.com>
Tue, 26 Apr 2022 10:50:41 +0000 (12:50 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 6 May 2022 15:33:46 +0000 (17:33 +0200)
These ancient RHEL-only CPU models should not really be used by any CPU
definition created by libvirt. We keep them just for backwards
compatibility with domains which might still be using them.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/cpu_map/x86_cpu64-rhel5.xml
src/cpu_map/x86_cpu64-rhel6.xml
tests/cputestdata/x86_64-baseline-no-vendor-result.xml

index be6bcdb7a626ff55d37167437b07a9e218168539..7402b7603c7030e3f0b498ac93994fc6cd9f6593 100644 (file)
@@ -1,6 +1,6 @@
 <cpus>
   <model name='cpu64-rhel5'>
-    <decode host='on' guest='on'/>
+    <decode host='off' guest='off'/>
     <feature name='apic'/>
     <feature name='clflush'/>
     <feature name='cmov'/>
index c62b1b5575de8de11087f0193ba41d4dd8189280..061939c733657f75e02f4ba045a714e394abae64 100644 (file)
@@ -1,6 +1,6 @@
 <cpus>
   <model name='cpu64-rhel6'>
-    <decode host='on' guest='on'/>
+    <decode host='off' guest='off'/>
     <feature name='apic'/>
     <feature name='clflush'/>
     <feature name='cmov'/>
index 00e03b21526044d526acc41d976787b033a4c3b8..4b4921cf9308bf67e51570f4b54b6e05d05fae12 100644 (file)
@@ -1,3 +1,4 @@
 <cpu mode='custom' match='exact'>
-  <model fallback='allow'>cpu64-rhel6</model>
+  <model fallback='allow'>kvm64</model>
+  <feature policy='require' name='lahf_lm'/>
 </cpu>