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