render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
397dc2
From cff220056e78bad15a8addf9739f8a556b7a6ea2 Mon Sep 17 00:00:00 2001
397dc2
Message-Id: <cff220056e78bad15a8addf9739f8a556b7a6ea2@dist-git>
397dc2
From: Jiri Denemark <jdenemar@redhat.com>
397dc2
Date: Thu, 8 Oct 2020 18:01:21 +0200
397dc2
Subject: [PATCH] cpu_map: Add missing x86 features in 0x7 CPUID leaf
397dc2
MIME-Version: 1.0
397dc2
Content-Type: text/plain; charset=UTF-8
397dc2
Content-Transfer-Encoding: 8bit
397dc2
397dc2
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
397dc2
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
397dc2
(cherry picked from commit 6ea3bb19c6fed39429c95eb284487b849cb12e2a)
397dc2
397dc2
https://bugzilla.redhat.com/show_bug.cgi?id=1861506
397dc2
397dc2
Conflicts:
397dc2
	tests/cputestdata/x86_64-cpuid-Ryzen-9-3900X-12-Core-enabled.xml
397dc2
	tests/cputestdata/x86_64-cpuid-Ryzen-9-3900X-12-Core-guest.xml
397dc2
	tests/cputestdata/x86_64-cpuid-Ryzen-9-3900X-12-Core-host.xml
397dc2
	tests/cputestdata/x86_64-cpuid-Ryzen-9-3900X-12-Core-json.xml
397dc2
	tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml
397dc2
	tests/domaincapsdata/qemu_5.1.0.x86_64.xml
397dc2
            - not present downstream
397dc2
397dc2
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
397dc2
Message-Id: <04da640b0fbbbcec9be63e552a3029f983bf879a.1602172344.git.jdenemar@redhat.com>
397dc2
Reviewed-by: Ján Tomko <jtomko@redhat.com>
397dc2
---
397dc2
 src/cpu_map/x86_features.xml                         | 12 ++++++++++++
397dc2
 .../x86_64-cpuid-Ice-Lake-Server-disabled.xml        |  2 +-
397dc2
 .../x86_64-cpuid-Ice-Lake-Server-guest.xml           |  1 +
397dc2
 .../x86_64-cpuid-Ice-Lake-Server-host.xml            |  1 +
397dc2
 4 files changed, 15 insertions(+), 1 deletion(-)
397dc2
397dc2
diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml
397dc2
index 8525ae0fa5..364e45fb32 100644
397dc2
--- a/src/cpu_map/x86_features.xml
397dc2
+++ b/src/cpu_map/x86_features.xml
397dc2
@@ -286,6 +286,9 @@
397dc2
   <feature name='ospke'>
397dc2
     <cpuid eax_in='0x07' ecx_in='0x00' ecx='0x00000010'/>
397dc2
   </feature>
397dc2
+  <feature name='waitpkg'>
397dc2
+    <cpuid eax_in='0x07' ecx_in='0x00' ecx='0x00000020'/>
397dc2
+  </feature>
397dc2
   <feature name='avx512vbmi2'>
397dc2
     <cpuid eax_in='0x07' ecx_in='0x00' ecx='0x00000040'/>
397dc2
   </feature>
397dc2
@@ -310,9 +313,18 @@
397dc2
   <feature name='la57'>
397dc2
     <cpuid eax_in='0x07' ecx_in='0x00' ecx='0x00010000'/>
397dc2
   </feature>
397dc2
+  <feature name='rdpid'>
397dc2
+    <cpuid eax_in='0x07' ecx_in='0x00' ecx='0x00400000'/>
397dc2
+  </feature>
397dc2
   <feature name='cldemote'>
397dc2
     <cpuid eax_in='0x07' ecx_in='0x00' ecx='0x02000000'/>
397dc2
   </feature>
397dc2
+  <feature name='movdiri'>
397dc2
+    <cpuid eax_in='0x07' ecx_in='0x00' ecx='0x08000000'/>
397dc2
+  </feature>
397dc2
+  <feature name='movdir64b'>
397dc2
+    <cpuid eax_in='0x07' ecx_in='0x00' ecx='0x10000000'/>
397dc2
+  </feature>
397dc2
 
397dc2
   <feature name='avx512-4vnniw'>
397dc2
     <cpuid eax_in='0x07' ecx_in='0x00' edx='0x00000004'/>
397dc2
diff --git a/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-disabled.xml b/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-disabled.xml
397dc2
index 62c6bad612..ce65579bcc 100644
397dc2
--- a/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-disabled.xml
397dc2
+++ b/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-disabled.xml
397dc2
@@ -1,7 +1,7 @@
397dc2
 
397dc2
 <cpudata arch='x86'>
397dc2
   <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x0804c1fc' edx='0xb0600000'/>
397dc2
-  <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x02001000' ecx='0x00000010' edx='0x00000000'/>
397dc2
+  <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x02001000' ecx='0x00400010' edx='0x00000000'/>
397dc2
   <cpuid eax_in='0x0000000f' ecx_in='0x01' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000006'/>
397dc2
   <cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/>
397dc2
 </cpudata>
397dc2
diff --git a/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-guest.xml b/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-guest.xml
397dc2
index 4676f3aa7d..9b75ace710 100644
397dc2
--- a/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-guest.xml
397dc2
+++ b/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-guest.xml
397dc2
@@ -23,6 +23,7 @@
397dc2
   <feature policy='require' name='avx512ifma'/>
397dc2
   <feature policy='require' name='sha-ni'/>
397dc2
   <feature policy='require' name='ospke'/>
397dc2
+  <feature policy='require' name='rdpid'/>
397dc2
   <feature policy='require' name='stibp'/>
397dc2
   <feature policy='require' name='arch-capabilities'/>
397dc2
   <feature policy='require' name='xsaves'/>
397dc2
diff --git a/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-host.xml b/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-host.xml
397dc2
index 35b9e39629..efbf9d363b 100644
397dc2
--- a/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-host.xml
397dc2
+++ b/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-host.xml
397dc2
@@ -24,6 +24,7 @@
397dc2
   <feature name='avx512ifma'/>
397dc2
   <feature name='sha-ni'/>
397dc2
   <feature name='ospke'/>
397dc2
+  <feature name='rdpid'/>
397dc2
   <feature name='stibp'/>
397dc2
   <feature name='arch-capabilities'/>
397dc2
   <feature name='xsaves'/>
397dc2
-- 
397dc2
2.29.2
397dc2