render / rpms / libvirt

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