render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
c480ed
From d31a3ba6c9396f8ede2966d49030e9b4011be636 Mon Sep 17 00:00:00 2001
c480ed
Message-Id: <d31a3ba6c9396f8ede2966d49030e9b4011be636@dist-git>
c480ed
From: Jiri Denemark <jdenemar@redhat.com>
c480ed
Date: Fri, 21 Jun 2019 09:25:12 +0200
c480ed
Subject: [PATCH] cpu_map: Add more signatures for Westmere CPU model
c480ed
MIME-Version: 1.0
c480ed
Content-Type: text/plain; charset=UTF-8
c480ed
Content-Transfer-Encoding: 8bit
c480ed
c480ed
This fixes several CPUs which were incorrectly detected as a different
c480ed
CPU model.
c480ed
c480ed
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
(cherry picked from commit e89f87721406f6ad6e811ff613a22dc804d69355)
c480ed
c480ed
https://bugzilla.redhat.com/show_bug.cgi?id=1686895
c480ed
c480ed
Conflicts:
c480ed
	src/cpu_map/x86_Westmere.xml
c480ed
            - cpu_map split not backported
c480ed
c480ed
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c480ed
Message-Id: <facb5fd10ffe274e581e16db8362d0b8ee71424b.1561068591.git.jdenemar@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
---
c480ed
 src/cpu/cpu_map.xml                                    |  2 ++
c480ed
 tests/cputestdata/x86_64-cpuid-Core-i5-650-json.xml    |  9 +++++----
c480ed
 tests/cputestdata/x86_64-cpuid-Pentium-P6100-guest.xml | 10 ++++++----
c480ed
 tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-guest.xml  |  8 ++++----
c480ed
 tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-json.xml   |  8 +++++---
c480ed
 tests/cputestdata/x86_64-cpuid-Xeon-E7-4830-json.xml   |  9 +++++----
c480ed
 6 files changed, 27 insertions(+), 19 deletions(-)
c480ed
c480ed
diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
c480ed
index 4f9c247f3e..fed0f51934 100644
c480ed
--- a/src/cpu/cpu_map.xml
c480ed
+++ b/src/cpu/cpu_map.xml
c480ed
@@ -976,6 +976,8 @@
c480ed
 
c480ed
     <model name='Westmere'>
c480ed
       <signature family='6' model='44'/> 
c480ed
+      <signature family='6' model='47'/> 
c480ed
+      <signature family='6' model='37'/> 
c480ed
       <vendor name='Intel'/>
c480ed
       <feature name='aes'/>
c480ed
       <feature name='apic'/>
c480ed
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i5-650-json.xml b/tests/cputestdata/x86_64-cpuid-Core-i5-650-json.xml
c480ed
index f5980f53e5..cb21e48a9f 100644
c480ed
--- a/tests/cputestdata/x86_64-cpuid-Core-i5-650-json.xml
c480ed
+++ b/tests/cputestdata/x86_64-cpuid-Core-i5-650-json.xml
c480ed
@@ -1,12 +1,13 @@
c480ed
 <cpu mode='custom' match='exact'>
c480ed
-  <model fallback='forbid'>SandyBridge</model>
c480ed
+  <model fallback='forbid'>Westmere</model>
c480ed
   <vendor>Intel</vendor>
c480ed
   <feature policy='require' name='vme'/>
c480ed
   <feature policy='require' name='ss'/>
c480ed
+  <feature policy='require' name='pclmuldq'/>
c480ed
+  <feature policy='require' name='x2apic'/>
c480ed
+  <feature policy='require' name='tsc-deadline'/>
c480ed
   <feature policy='require' name='hypervisor'/>
c480ed
   <feature policy='require' name='arat'/>
c480ed
   <feature policy='require' name='tsc_adjust'/>
c480ed
-  <feature policy='disable' name='xsave'/>
c480ed
-  <feature policy='disable' name='avx'/>
c480ed
-  <feature policy='disable' name='xsaveopt'/>
c480ed
+  <feature policy='require' name='rdtscp'/>
c480ed
 </cpu>
c480ed
diff --git a/tests/cputestdata/x86_64-cpuid-Pentium-P6100-guest.xml b/tests/cputestdata/x86_64-cpuid-Pentium-P6100-guest.xml
c480ed
index db5e0ae6af..20e2fa363a 100644
c480ed
--- a/tests/cputestdata/x86_64-cpuid-Pentium-P6100-guest.xml
c480ed
+++ b/tests/cputestdata/x86_64-cpuid-Pentium-P6100-guest.xml
c480ed
@@ -1,6 +1,7 @@
c480ed
 <cpu mode='custom' match='exact'>
c480ed
-  <model fallback='forbid'>core2duo</model>
c480ed
+  <model fallback='forbid'>Westmere</model>
c480ed
   <vendor>Intel</vendor>
c480ed
+  <feature policy='require' name='vme'/>
c480ed
   <feature policy='require' name='ds'/>
c480ed
   <feature policy='require' name='acpi'/>
c480ed
   <feature policy='require' name='ss'/>
c480ed
@@ -8,16 +9,17 @@
c480ed
   <feature policy='require' name='tm'/>
c480ed
   <feature policy='require' name='pbe'/>
c480ed
   <feature policy='require' name='dtes64'/>
c480ed
+  <feature policy='require' name='monitor'/>
c480ed
   <feature policy='require' name='ds_cpl'/>
c480ed
   <feature policy='require' name='est'/>
c480ed
   <feature policy='require' name='tm2'/>
c480ed
-  <feature policy='require' name='cx16'/>
c480ed
   <feature policy='require' name='xtpr'/>
c480ed
   <feature policy='require' name='pdcm'/>
c480ed
   <feature policy='require' name='pcid'/>
c480ed
-  <feature policy='require' name='popcnt'/>
c480ed
   <feature policy='require' name='arat'/>
c480ed
   <feature policy='require' name='rdtscp'/>
c480ed
-  <feature policy='require' name='lahf_lm'/>
c480ed
   <feature policy='require' name='invtsc'/>
c480ed
+  <feature policy='disable' name='sse4.1'/>
c480ed
+  <feature policy='disable' name='sse4.2'/>
c480ed
+  <feature policy='disable' name='aes'/>
c480ed
 </cpu>
c480ed
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-guest.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-guest.xml
c480ed
index dbf8580a0e..659779687a 100644
c480ed
--- a/tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-guest.xml
c480ed
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-guest.xml
c480ed
@@ -1,5 +1,5 @@
c480ed
 <cpu mode='custom' match='exact'>
c480ed
-  <model fallback='forbid'>SandyBridge</model>
c480ed
+  <model fallback='forbid'>Westmere</model>
c480ed
   <vendor>Intel</vendor>
c480ed
   <feature policy='require' name='vme'/>
c480ed
   <feature policy='require' name='ds'/>
c480ed
@@ -8,6 +8,7 @@
c480ed
   <feature policy='require' name='ht'/>
c480ed
   <feature policy='require' name='tm'/>
c480ed
   <feature policy='require' name='pbe'/>
c480ed
+  <feature policy='require' name='pclmuldq'/>
c480ed
   <feature policy='require' name='dtes64'/>
c480ed
   <feature policy='require' name='monitor'/>
c480ed
   <feature policy='require' name='ds_cpl'/>
c480ed
@@ -19,10 +20,9 @@
c480ed
   <feature policy='require' name='pdcm'/>
c480ed
   <feature policy='require' name='pcid'/>
c480ed
   <feature policy='require' name='dca'/>
c480ed
+  <feature policy='require' name='x2apic'/>
c480ed
   <feature policy='require' name='arat'/>
c480ed
   <feature policy='require' name='pdpe1gb'/>
c480ed
+  <feature policy='require' name='rdtscp'/>
c480ed
   <feature policy='require' name='invtsc'/>
c480ed
-  <feature policy='disable' name='tsc-deadline'/>
c480ed
-  <feature policy='disable' name='xsave'/>
c480ed
-  <feature policy='disable' name='avx'/>
c480ed
 </cpu>
c480ed
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-json.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-json.xml
c480ed
index d94a330f37..e8b74c5c30 100644
c480ed
--- a/tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-json.xml
c480ed
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E7-4820-json.xml
c480ed
@@ -1,12 +1,14 @@
c480ed
 <cpu mode='custom' match='exact'>
c480ed
-  <model fallback='forbid'>SandyBridge</model>
c480ed
+  <model fallback='forbid'>Westmere</model>
c480ed
   <vendor>Intel</vendor>
c480ed
   <feature policy='require' name='vme'/>
c480ed
   <feature policy='require' name='ss'/>
c480ed
+  <feature policy='require' name='pclmuldq'/>
c480ed
   <feature policy='require' name='pcid'/>
c480ed
+  <feature policy='require' name='x2apic'/>
c480ed
+  <feature policy='require' name='tsc-deadline'/>
c480ed
   <feature policy='require' name='hypervisor'/>
c480ed
   <feature policy='require' name='tsc_adjust'/>
c480ed
   <feature policy='require' name='pdpe1gb'/>
c480ed
-  <feature policy='disable' name='xsave'/>
c480ed
-  <feature policy='disable' name='avx'/>
c480ed
+  <feature policy='require' name='rdtscp'/>
c480ed
 </cpu>
c480ed
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E7-4830-json.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E7-4830-json.xml
c480ed
index aae32bd7e2..da949ad25e 100644
c480ed
--- a/tests/cputestdata/x86_64-cpuid-Xeon-E7-4830-json.xml
c480ed
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E7-4830-json.xml
c480ed
@@ -1,14 +1,15 @@
c480ed
 <cpu mode='custom' match='exact'>
c480ed
-  <model fallback='forbid'>SandyBridge</model>
c480ed
+  <model fallback='forbid'>Westmere</model>
c480ed
   <vendor>Intel</vendor>
c480ed
   <feature policy='require' name='vme'/>
c480ed
   <feature policy='require' name='ss'/>
c480ed
+  <feature policy='require' name='pclmuldq'/>
c480ed
   <feature policy='require' name='pcid'/>
c480ed
+  <feature policy='require' name='x2apic'/>
c480ed
+  <feature policy='require' name='tsc-deadline'/>
c480ed
   <feature policy='require' name='hypervisor'/>
c480ed
   <feature policy='require' name='arat'/>
c480ed
   <feature policy='require' name='tsc_adjust'/>
c480ed
   <feature policy='require' name='pdpe1gb'/>
c480ed
-  <feature policy='disable' name='xsave'/>
c480ed
-  <feature policy='disable' name='avx'/>
c480ed
-  <feature policy='disable' name='xsaveopt'/>
c480ed
+  <feature policy='require' name='rdtscp'/>
c480ed
 </cpu>
c480ed
-- 
c480ed
2.22.0
c480ed