]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
cpu_map: Don't use new noTSX models for host-model CPUs
authorJiri Denemark <jdenemar@redhat.com>
Tue, 17 Mar 2020 21:32:16 +0000 (22:32 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 25 Mar 2020 21:27:39 +0000 (22:27 +0100)
Host-model CPU definitions (and domain capabilities) will use the
original CPU models (without noTSX in their name) and explicitly disable
hle and rtm features. This way domains with host-model CPUs will be
migratable even to older versions of libvirt which do not support the
noTSX model variants.

The new models will be advertised in host capabilities and they may
be used explicitly with custom CPUs.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Tested-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
src/cpu_map/x86_Cascadelake-Server-noTSX.xml
src/cpu_map/x86_Icelake-Client-noTSX.xml
src/cpu_map/x86_Icelake-Server-noTSX.xml
src/cpu_map/x86_Skylake-Client-noTSX-IBRS.xml
src/cpu_map/x86_Skylake-Server-noTSX-IBRS.xml
tests/cputestdata/x86_64-cpuid-Core-i7-8550U-guest.xml
tests/cputestdata/x86_64-cpuid-Core-i7-8550U-json.xml

index 5adea664e9d177e8c8740ea4929a12ab56d7953c..459174a30d724f9661af12032d18b001532459c2 100644 (file)
@@ -1,6 +1,6 @@
 <cpus>
   <model name='Cascadelake-Server-noTSX'>
-    <decode host='on' guest='on'/>
+    <decode host='on' guest='off'/>
     <signature family='6' model='85'/> <!-- 050654 -->
     <vendor name='Intel'/>
     <feature name='3dnowprefetch'/>
index 540732af6ff7b9bd779e177a99296f9cd01805de..65e648ae21ecd73c40cfdb1e5c70660496ce280e 100644 (file)
@@ -1,6 +1,6 @@
 <cpus>
   <model name='Icelake-Client-noTSX'>
-    <decode host='on' guest='on'/>
+    <decode host='on' guest='off'/>
     <signature family='6' model='126'/> <!-- 0706e0 -->
     <vendor name='Intel'/>
     <feature name='3dnowprefetch'/>
index 5a53da23c706bd77914536163372a81fce4cae19..2fd69064067b8894d6a37b303dda7a9376389fcf 100644 (file)
@@ -1,6 +1,6 @@
 <cpus>
   <model name='Icelake-Server-noTSX'>
-    <decode host='on' guest='on'/>
+    <decode host='on' guest='off'/>
     <signature family='6' model='134'/> <!-- 080660 -->
     <vendor name='Intel'/>
     <feature name='3dnowprefetch'/>
index 0c2f1e6ac4618070e1d1a7940cf7e17c127a5d90..ffba34502a428f014084ac767e651bc7c85273b1 100644 (file)
@@ -1,6 +1,6 @@
 <cpus>
   <model name='Skylake-Client-noTSX-IBRS'>
-    <decode host='on' guest='on'/>
+    <decode host='on' guest='off'/>
     <signature family='6' model='94'/> <!-- 0506e0 -->
     <signature family='6' model='78'/> <!-- 0406e0 -->
     <!-- These are Kaby Lake and Coffee Lake successors to Skylake,
index 91a206f57526801c818830b2f10fb655c8ee3c10..c2b7de40e8a729f11bdf12a2e95ceb20d486b637 100644 (file)
@@ -1,6 +1,6 @@
 <cpus>
   <model name='Skylake-Server-noTSX-IBRS'>
-    <decode host='on' guest='on'/>
+    <decode host='on' guest='off'/>
     <signature family='6' model='85'/> <!-- 050654 -->
     <vendor name='Intel'/>
     <feature name='3dnowprefetch'/>
index e03c4a06baf7f274b5e4efeeeae9ca58325cb2ef..92404e4d037bbbb0bc727d66780da7411b9f7d88 100644 (file)
@@ -1,5 +1,5 @@
 <cpu mode='custom' match='exact'>
-  <model fallback='forbid'>Skylake-Client-noTSX-IBRS</model>
+  <model fallback='forbid'>Skylake-Client-IBRS</model>
   <vendor>Intel</vendor>
   <feature policy='require' name='ds'/>
   <feature policy='require' name='acpi'/>
@@ -26,4 +26,6 @@
   <feature policy='require' name='pdpe1gb'/>
   <feature policy='require' name='invtsc'/>
   <feature policy='require' name='skip-l1dfl-vmentry'/>
+  <feature policy='disable' name='hle'/>
+  <feature policy='disable' name='rtm'/>
 </cpu>
index 3d8e6775bfd604b2a807a8a1d58d6253953570f3..645c0934c236ad84f735a56d9ef256f39395d4de 100644 (file)
@@ -1,5 +1,5 @@
 <cpu mode='custom' match='exact'>
-  <model fallback='forbid'>Skylake-Client-noTSX-IBRS</model>
+  <model fallback='forbid'>Skylake-Client-IBRS</model>
   <vendor>Intel</vendor>
   <feature policy='require' name='ss'/>
   <feature policy='require' name='vmx'/>
@@ -14,4 +14,6 @@
   <feature policy='require' name='xsaves'/>
   <feature policy='require' name='pdpe1gb'/>
   <feature policy='require' name='skip-l1dfl-vmentry'/>
+  <feature policy='disable' name='hle'/>
+  <feature policy='disable' name='rtm'/>
 </cpu>