render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
bcddb9
From a4fe8dfb0c2df61f1b903e8858cd6430954f30e2 Mon Sep 17 00:00:00 2001
bcddb9
Message-Id: <a4fe8dfb0c2df61f1b903e8858cd6430954f30e2@dist-git>
bcddb9
From: Jiri Denemark <Jiri.Denemark@gmail.com>
bcddb9
Date: Wed, 20 Mar 2019 17:15:16 +0100
bcddb9
Subject: [PATCH] cpu_map: Add more signatures for Broadwell CPU models
bcddb9
MIME-Version: 1.0
bcddb9
Content-Type: text/plain; charset=UTF-8
bcddb9
Content-Transfer-Encoding: 8bit
bcddb9
bcddb9
This fixes several CPUs which were incorrectly detected as
bcddb9
Skylake-Client.
bcddb9
bcddb9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
bcddb9
Reviewed-by: Ján Tomko <jtomko@redhat.com>
bcddb9
(cherry picked from commit 4ff74a806ad42820eef3877c8ec146770914d8df)
bcddb9
bcddb9
https://bugzilla.redhat.com/show_bug.cgi?id=1558558
bcddb9
https://bugzilla.redhat.com/show_bug.cgi?id=1687515
bcddb9
bcddb9
Conflicts:
bcddb9
	src/cpu_map/x86_Broadwell-IBRS.xml
bcddb9
	src/cpu_map/x86_Broadwell-noTSX-IBRS.xml
bcddb9
	src/cpu_map/x86_Broadwell-noTSX.xml
bcddb9
	src/cpu_map/x86_Broadwell.xml
bcddb9
            - cpu_map split not backported
bcddb9
bcddb9
	tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v4-guest.xml
bcddb9
            - context: intel-pt feature does not exist in RHEL-7.6
bcddb9
bcddb9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
bcddb9
Reviewed-by: Ján Tomko <jtomko@redhat.com>
bcddb9
---
bcddb9
 src/cpu/cpu_map.xml                                  | 12 ++++++++++++
bcddb9
 .../x86_64-cpuid-Xeon-E5-2623-v4-guest.xml           | 11 +++++++----
bcddb9
 .../x86_64-cpuid-Xeon-E5-2623-v4-json.xml            | 11 +++++++----
bcddb9
 .../x86_64-cpuid-Xeon-E5-2630-v4-guest.xml           | 11 +++++++----
bcddb9
 .../x86_64-cpuid-Xeon-E5-2630-v4-json.xml            | 11 +++++++----
bcddb9
 .../x86_64-cpuid-Xeon-E5-2650-v4-guest.xml           | 11 +++++++----
bcddb9
 .../x86_64-cpuid-Xeon-E5-2650-v4-json.xml            | 11 +++++++----
bcddb9
 7 files changed, 54 insertions(+), 24 deletions(-)
bcddb9
bcddb9
diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
bcddb9
index 7c6f70113e..095ea0a839 100644
bcddb9
--- a/src/cpu/cpu_map.xml
bcddb9
+++ b/src/cpu/cpu_map.xml
bcddb9
@@ -1434,6 +1434,9 @@
bcddb9
 
bcddb9
     <model name='Broadwell-noTSX'>
bcddb9
       <signature family='6' model='61'/> 
bcddb9
+      <signature family='6' model='71'/> 
bcddb9
+      <signature family='6' model='79'/> 
bcddb9
+      <signature family='6' model='86'/> 
bcddb9
       <vendor name='Intel'/>
bcddb9
       <feature name='3dnowprefetch'/>
bcddb9
       <feature name='adx'/>
bcddb9
@@ -1491,6 +1494,9 @@
bcddb9
 
bcddb9
     <model name='Broadwell-noTSX-IBRS'>
bcddb9
       <signature family='6' model='61'/> 
bcddb9
+      <signature family='6' model='71'/> 
bcddb9
+      <signature family='6' model='79'/> 
bcddb9
+      <signature family='6' model='86'/> 
bcddb9
       <vendor name='Intel'/>
bcddb9
       <feature name='3dnowprefetch'/>
bcddb9
       <feature name='adx'/>
bcddb9
@@ -1549,6 +1555,9 @@
bcddb9
 
bcddb9
     <model name='Broadwell'>
bcddb9
       <signature family='6' model='61'/> 
bcddb9
+      <signature family='6' model='71'/> 
bcddb9
+      <signature family='6' model='79'/> 
bcddb9
+      <signature family='6' model='86'/> 
bcddb9
       <vendor name='Intel'/>
bcddb9
       <feature name='3dnowprefetch'/>
bcddb9
       <feature name='adx'/>
bcddb9
@@ -1608,6 +1617,9 @@
bcddb9
 
bcddb9
     <model name='Broadwell-IBRS'>
bcddb9
       <signature family='6' model='61'/> 
bcddb9
+      <signature family='6' model='71'/> 
bcddb9
+      <signature family='6' model='79'/> 
bcddb9
+      <signature family='6' model='86'/> 
bcddb9
       <vendor name='Intel'/>
bcddb9
       <feature name='3dnowprefetch'/>
bcddb9
       <feature name='adx'/>
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-guest.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-guest.xml
bcddb9
index d4f303ecce..e2ad344497 100644
bcddb9
--- a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-guest.xml
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-guest.xml
bcddb9
@@ -1,6 +1,7 @@
bcddb9
 <cpu mode='custom' match='exact'>
bcddb9
-  <model fallback='forbid'>Skylake-Client-IBRS</model>
bcddb9
+  <model fallback='forbid'>Broadwell-IBRS</model>
bcddb9
   <vendor>Intel</vendor>
bcddb9
+  <feature policy='require' name='vme'/>
bcddb9
   <feature policy='require' name='ds'/>
bcddb9
   <feature policy='require' name='acpi'/>
bcddb9
   <feature policy='require' name='ss'/>
bcddb9
@@ -18,14 +19,16 @@
bcddb9
   <feature policy='require' name='pdcm'/>
bcddb9
   <feature policy='require' name='dca'/>
bcddb9
   <feature policy='require' name='osxsave'/>
bcddb9
+  <feature policy='require' name='f16c'/>
bcddb9
+  <feature policy='require' name='rdrand'/>
bcddb9
+  <feature policy='require' name='arat'/>
bcddb9
   <feature policy='require' name='tsc_adjust'/>
bcddb9
   <feature policy='require' name='cmt'/>
bcddb9
   <feature policy='require' name='stibp'/>
bcddb9
+  <feature policy='require' name='xsaveopt'/>
bcddb9
   <feature policy='require' name='mbm_total'/>
bcddb9
   <feature policy='require' name='mbm_local'/>
bcddb9
   <feature policy='require' name='pdpe1gb'/>
bcddb9
+  <feature policy='require' name='abm'/>
bcddb9
   <feature policy='require' name='invtsc'/>
bcddb9
-  <feature policy='disable' name='mpx'/>
bcddb9
-  <feature policy='disable' name='xsavec'/>
bcddb9
-  <feature policy='disable' name='xgetbv1'/>
bcddb9
 </cpu>
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-json.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-json.xml
bcddb9
index 167a9028ab..de082dbd93 100644
bcddb9
--- a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-json.xml
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2623-v4-json.xml
bcddb9
@@ -1,11 +1,14 @@
bcddb9
 <cpu mode='custom' match='exact'>
bcddb9
-  <model fallback='forbid'>Skylake-Client-IBRS</model>
bcddb9
+  <model fallback='forbid'>Broadwell-IBRS</model>
bcddb9
   <vendor>Intel</vendor>
bcddb9
+  <feature policy='require' name='vme'/>
bcddb9
   <feature policy='require' name='ss'/>
bcddb9
+  <feature policy='require' name='f16c'/>
bcddb9
+  <feature policy='require' name='rdrand'/>
bcddb9
   <feature policy='require' name='hypervisor'/>
bcddb9
+  <feature policy='require' name='arat'/>
bcddb9
   <feature policy='require' name='tsc_adjust'/>
bcddb9
+  <feature policy='require' name='xsaveopt'/>
bcddb9
   <feature policy='require' name='pdpe1gb'/>
bcddb9
-  <feature policy='disable' name='mpx'/>
bcddb9
-  <feature policy='disable' name='xsavec'/>
bcddb9
-  <feature policy='disable' name='xgetbv1'/>
bcddb9
+  <feature policy='require' name='abm'/>
bcddb9
 </cpu>
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-guest.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-guest.xml
bcddb9
index 2fac54355c..c670b1f4df 100644
bcddb9
--- a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-guest.xml
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-guest.xml
bcddb9
@@ -1,6 +1,7 @@
bcddb9
 <cpu mode='custom' match='exact'>
bcddb9
-  <model fallback='forbid'>Skylake-Client</model>
bcddb9
+  <model fallback='forbid'>Broadwell</model>
bcddb9
   <vendor>Intel</vendor>
bcddb9
+  <feature policy='require' name='vme'/>
bcddb9
   <feature policy='require' name='ds'/>
bcddb9
   <feature policy='require' name='acpi'/>
bcddb9
   <feature policy='require' name='ss'/>
bcddb9
@@ -18,13 +19,15 @@
bcddb9
   <feature policy='require' name='pdcm'/>
bcddb9
   <feature policy='require' name='dca'/>
bcddb9
   <feature policy='require' name='osxsave'/>
bcddb9
+  <feature policy='require' name='f16c'/>
bcddb9
+  <feature policy='require' name='rdrand'/>
bcddb9
+  <feature policy='require' name='arat'/>
bcddb9
   <feature policy='require' name='tsc_adjust'/>
bcddb9
   <feature policy='require' name='cmt'/>
bcddb9
+  <feature policy='require' name='xsaveopt'/>
bcddb9
   <feature policy='require' name='mbm_total'/>
bcddb9
   <feature policy='require' name='mbm_local'/>
bcddb9
   <feature policy='require' name='pdpe1gb'/>
bcddb9
+  <feature policy='require' name='abm'/>
bcddb9
   <feature policy='require' name='invtsc'/>
bcddb9
-  <feature policy='disable' name='mpx'/>
bcddb9
-  <feature policy='disable' name='xsavec'/>
bcddb9
-  <feature policy='disable' name='xgetbv1'/>
bcddb9
 </cpu>
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-json.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-json.xml
bcddb9
index 5dfce947b2..5b8891093a 100644
bcddb9
--- a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-json.xml
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-json.xml
bcddb9
@@ -1,11 +1,14 @@
bcddb9
 <cpu mode='custom' match='exact'>
bcddb9
-  <model fallback='forbid'>Skylake-Client</model>
bcddb9
+  <model fallback='forbid'>Broadwell</model>
bcddb9
   <vendor>Intel</vendor>
bcddb9
+  <feature policy='require' name='vme'/>
bcddb9
   <feature policy='require' name='ss'/>
bcddb9
+  <feature policy='require' name='f16c'/>
bcddb9
+  <feature policy='require' name='rdrand'/>
bcddb9
   <feature policy='require' name='hypervisor'/>
bcddb9
+  <feature policy='require' name='arat'/>
bcddb9
   <feature policy='require' name='tsc_adjust'/>
bcddb9
+  <feature policy='require' name='xsaveopt'/>
bcddb9
   <feature policy='require' name='pdpe1gb'/>
bcddb9
-  <feature policy='disable' name='mpx'/>
bcddb9
-  <feature policy='disable' name='xsavec'/>
bcddb9
-  <feature policy='disable' name='xgetbv1'/>
bcddb9
+  <feature policy='require' name='abm'/>
bcddb9
 </cpu>
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v4-guest.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v4-guest.xml
bcddb9
index 2fac54355c..c670b1f4df 100644
bcddb9
--- a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v4-guest.xml
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v4-guest.xml
bcddb9
@@ -1,6 +1,7 @@
bcddb9
 <cpu mode='custom' match='exact'>
bcddb9
-  <model fallback='forbid'>Skylake-Client</model>
bcddb9
+  <model fallback='forbid'>Broadwell</model>
bcddb9
   <vendor>Intel</vendor>
bcddb9
+  <feature policy='require' name='vme'/>
bcddb9
   <feature policy='require' name='ds'/>
bcddb9
   <feature policy='require' name='acpi'/>
bcddb9
   <feature policy='require' name='ss'/>
bcddb9
@@ -18,13 +19,15 @@
bcddb9
   <feature policy='require' name='pdcm'/>
bcddb9
   <feature policy='require' name='dca'/>
bcddb9
   <feature policy='require' name='osxsave'/>
bcddb9
+  <feature policy='require' name='f16c'/>
bcddb9
+  <feature policy='require' name='rdrand'/>
bcddb9
+  <feature policy='require' name='arat'/>
bcddb9
   <feature policy='require' name='tsc_adjust'/>
bcddb9
   <feature policy='require' name='cmt'/>
bcddb9
+  <feature policy='require' name='xsaveopt'/>
bcddb9
   <feature policy='require' name='mbm_total'/>
bcddb9
   <feature policy='require' name='mbm_local'/>
bcddb9
   <feature policy='require' name='pdpe1gb'/>
bcddb9
+  <feature policy='require' name='abm'/>
bcddb9
   <feature policy='require' name='invtsc'/>
bcddb9
-  <feature policy='disable' name='mpx'/>
bcddb9
-  <feature policy='disable' name='xsavec'/>
bcddb9
-  <feature policy='disable' name='xgetbv1'/>
bcddb9
 </cpu>
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v4-json.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v4-json.xml
bcddb9
index 5dfce947b2..5b8891093a 100644
bcddb9
--- a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v4-json.xml
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2650-v4-json.xml
bcddb9
@@ -1,11 +1,14 @@
bcddb9
 <cpu mode='custom' match='exact'>
bcddb9
-  <model fallback='forbid'>Skylake-Client</model>
bcddb9
+  <model fallback='forbid'>Broadwell</model>
bcddb9
   <vendor>Intel</vendor>
bcddb9
+  <feature policy='require' name='vme'/>
bcddb9
   <feature policy='require' name='ss'/>
bcddb9
+  <feature policy='require' name='f16c'/>
bcddb9
+  <feature policy='require' name='rdrand'/>
bcddb9
   <feature policy='require' name='hypervisor'/>
bcddb9
+  <feature policy='require' name='arat'/>
bcddb9
   <feature policy='require' name='tsc_adjust'/>
bcddb9
+  <feature policy='require' name='xsaveopt'/>
bcddb9
   <feature policy='require' name='pdpe1gb'/>
bcddb9
-  <feature policy='disable' name='mpx'/>
bcddb9
-  <feature policy='disable' name='xsavec'/>
bcddb9
-  <feature policy='disable' name='xgetbv1'/>
bcddb9
+  <feature policy='require' name='abm'/>
bcddb9
 </cpu>
bcddb9
-- 
bcddb9
2.21.0
bcddb9