|
|
c480ed |
From 0c781b84fe81ca2d4865e92d6c22dafcea62261c Mon Sep 17 00:00:00 2001
|
|
|
c480ed |
Message-Id: <0c781b84fe81ca2d4865e92d6c22dafcea62261c@dist-git>
|
|
|
c480ed |
From: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c480ed |
Date: Fri, 21 Jun 2019 09:26:10 +0200
|
|
|
c480ed |
Subject: [PATCH] cpu_map: Introduce IA32_ARCH_CAPABILITIES MSR features
|
|
|
c480ed |
MIME-Version: 1.0
|
|
|
c480ed |
Content-Type: text/plain; charset=UTF-8
|
|
|
c480ed |
Content-Transfer-Encoding: 8bit
|
|
|
c480ed |
|
|
|
c480ed |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c480ed |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
c480ed |
(cherry picked from commit c8ec678fd9d97189667c0121f48a220dd26856b7)
|
|
|
c480ed |
|
|
|
c480ed |
https://bugzilla.redhat.com/show_bug.cgi?id=1697627
|
|
|
c480ed |
|
|
|
c480ed |
Conflicts:
|
|
|
c480ed |
src/cpu_map/x86_features.xml
|
|
|
c480ed |
- cpu_map XML is not split downstream
|
|
|
c480ed |
|
|
|
c480ed |
tests/domaincapsschemadata/qemu_3.1.0.x86_64.xml
|
|
|
c480ed |
tests/domaincapsschemadata/qemu_4.0.0.x86_64.xml
|
|
|
c480ed |
- missing
|
|
|
c480ed |
|
|
|
c480ed |
tests/domaincapsschemadata/qemu_4.1.0.x86_64.xml
|
|
|
c480ed |
- commit 4586b11bed9bc59ea749e28f522bf5e0b462c4c7 not
|
|
|
c480ed |
backported
|
|
|
c480ed |
|
|
|
c480ed |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
c480ed |
Message-Id: <acddba8b7464f063de46f04fc421319cc78ad86c.1561068591.git.jdenemar@redhat.com>
|
|
|
c480ed |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
c480ed |
---
|
|
|
c480ed |
src/cpu/cpu_map.xml | 20 +++++++++++++++++++
|
|
|
c480ed |
.../x86_64-cpuid-Core-i7-7600U-enabled.xml | 1 +
|
|
|
c480ed |
.../x86_64-cpuid-Core-i7-7600U-json.xml | 1 +
|
|
|
c480ed |
...86_64-cpuid-Xeon-Platinum-8268-enabled.xml | 1 +
|
|
|
c480ed |
.../x86_64-cpuid-Xeon-Platinum-8268-guest.xml | 4 ++++
|
|
|
c480ed |
.../x86_64-cpuid-Xeon-Platinum-8268-host.xml | 4 ++++
|
|
|
c480ed |
.../x86_64-cpuid-Xeon-Platinum-8268-json.xml | 3 +++
|
|
|
c480ed |
.../qemu_4.1.0.x86_64.xml | 1 +
|
|
|
c480ed |
8 files changed, 35 insertions(+)
|
|
|
c480ed |
|
|
|
c480ed |
diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
|
|
|
c480ed |
index 9b289556e8..acd9dad7dc 100644
|
|
|
c480ed |
--- a/src/cpu/cpu_map.xml
|
|
|
c480ed |
+++ b/src/cpu/cpu_map.xml
|
|
|
c480ed |
@@ -482,6 +482,26 @@
|
|
|
c480ed |
<cpuid eax_in='0x80000008' ebx='0x02000000'/>
|
|
|
c480ed |
</feature>
|
|
|
c480ed |
|
|
|
c480ed |
+
|
|
|
c480ed |
+ <feature name='rdctl-no'>
|
|
|
c480ed |
+ <msr index='0x10a' edx='0x00000000' eax='0x00000001'/>
|
|
|
c480ed |
+ </feature>
|
|
|
c480ed |
+ <feature name='ibrs-all'>
|
|
|
c480ed |
+ <msr index='0x10a' edx='0x00000000' eax='0x00000002'/>
|
|
|
c480ed |
+ </feature>
|
|
|
c480ed |
+ <feature name='rsba'>
|
|
|
c480ed |
+ <msr index='0x10a' edx='0x00000000' eax='0x00000004'/>
|
|
|
c480ed |
+ </feature>
|
|
|
c480ed |
+ <feature name='skip-l1dfl-vmentry'>
|
|
|
c480ed |
+ <msr index='0x10a' edx='0x00000000' eax='0x00000008'/>
|
|
|
c480ed |
+ </feature>
|
|
|
c480ed |
+ <feature name='ssb-no'>
|
|
|
c480ed |
+ <msr index='0x10a' edx='0x00000000' eax='0x00000010'/>
|
|
|
c480ed |
+ </feature>
|
|
|
c480ed |
+ <feature name='mds-no'>
|
|
|
c480ed |
+ <msr index='0x10a' edx='0x00000000' eax='0x00000020'/>
|
|
|
c480ed |
+ </feature>
|
|
|
c480ed |
+
|
|
|
c480ed |
|
|
|
c480ed |
<model name='486'>
|
|
|
c480ed |
<feature name='fpu'/>
|
|
|
c480ed |
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-7600U-enabled.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-7600U-enabled.xml
|
|
|
c480ed |
index b1cdaa802a..58bc84577c 100644
|
|
|
c480ed |
--- a/tests/cputestdata/x86_64-cpuid-Core-i7-7600U-enabled.xml
|
|
|
c480ed |
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-7600U-enabled.xml
|
|
|
c480ed |
@@ -5,4 +5,5 @@
|
|
|
c480ed |
<cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x009c4fbb' ecx='0x00000004' edx='0x84000000'/>
|
|
|
c480ed |
<cpuid eax_in='0x0000000d' ecx_in='0x01' eax='0x0000000f' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
|
|
|
c480ed |
<cpuid eax_in='0x80000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000121' edx='0x2c100800'/>
|
|
|
c480ed |
+ <msr index='0x10a' edx='0x00000000' eax='0x00000008'/>
|
|
|
c480ed |
</cpudata>
|
|
|
c480ed |
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-7600U-json.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-7600U-json.xml
|
|
|
c480ed |
index 48089c6003..690081493b 100644
|
|
|
c480ed |
--- a/tests/cputestdata/x86_64-cpuid-Core-i7-7600U-json.xml
|
|
|
c480ed |
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-7600U-json.xml
|
|
|
c480ed |
@@ -10,4 +10,5 @@
|
|
|
c480ed |
<feature policy='require' name='ssbd'/>
|
|
|
c480ed |
<feature policy='require' name='xsaves'/>
|
|
|
c480ed |
<feature policy='require' name='pdpe1gb'/>
|
|
|
c480ed |
+ <feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
c480ed |
</cpu>
|
|
|
c480ed |
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-enabled.xml b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-enabled.xml
|
|
|
c480ed |
index 434ac1956a..313009b156 100644
|
|
|
c480ed |
--- a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-enabled.xml
|
|
|
c480ed |
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-enabled.xml
|
|
|
c480ed |
@@ -5,4 +5,5 @@
|
|
|
c480ed |
<cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0xd19f4fbb' ecx='0x0000080c' edx='0x84000000'/>
|
|
|
c480ed |
<cpuid eax_in='0x0000000d' ecx_in='0x01' eax='0x0000000f' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
|
|
|
c480ed |
<cpuid eax_in='0x80000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000121' edx='0x2c100800'/>
|
|
|
c480ed |
+ <msr index='0x10a' edx='0x00000000' eax='0x0000000b'/>
|
|
|
c480ed |
</cpudata>
|
|
|
c480ed |
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-guest.xml b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-guest.xml
|
|
|
c480ed |
index c7e8a1fccf..988fb1dbdc 100644
|
|
|
c480ed |
--- a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-guest.xml
|
|
|
c480ed |
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-guest.xml
|
|
|
c480ed |
@@ -30,4 +30,8 @@
|
|
|
c480ed |
<feature policy='require' name='mbm_total'/>
|
|
|
c480ed |
<feature policy='require' name='mbm_local'/>
|
|
|
c480ed |
<feature policy='require' name='invtsc'/>
|
|
|
c480ed |
+ <feature policy='require' name='rdctl-no'/>
|
|
|
c480ed |
+ <feature policy='require' name='ibrs-all'/>
|
|
|
c480ed |
+ <feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
c480ed |
+ <feature policy='require' name='mds-no'/>
|
|
|
c480ed |
</cpu>
|
|
|
c480ed |
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-host.xml b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-host.xml
|
|
|
c480ed |
index d7482751b4..fdeafc4870 100644
|
|
|
c480ed |
--- a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-host.xml
|
|
|
c480ed |
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-host.xml
|
|
|
c480ed |
@@ -31,4 +31,8 @@
|
|
|
c480ed |
<feature name='mbm_total'/>
|
|
|
c480ed |
<feature name='mbm_local'/>
|
|
|
c480ed |
<feature name='invtsc'/>
|
|
|
c480ed |
+ <feature name='rdctl-no'/>
|
|
|
c480ed |
+ <feature name='ibrs-all'/>
|
|
|
c480ed |
+ <feature name='skip-l1dfl-vmentry'/>
|
|
|
c480ed |
+ <feature name='mds-no'/>
|
|
|
c480ed |
</cpu>
|
|
|
c480ed |
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-json.xml b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-json.xml
|
|
|
c480ed |
index b7d12dced7..78863c61d1 100644
|
|
|
c480ed |
--- a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-json.xml
|
|
|
c480ed |
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-8268-json.xml
|
|
|
c480ed |
@@ -7,4 +7,7 @@
|
|
|
c480ed |
<feature policy='require' name='umip'/>
|
|
|
c480ed |
<feature policy='require' name='pku'/>
|
|
|
c480ed |
<feature policy='require' name='xsaves'/>
|
|
|
c480ed |
+ <feature policy='require' name='rdctl-no'/>
|
|
|
c480ed |
+ <feature policy='require' name='ibrs-all'/>
|
|
|
c480ed |
+ <feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
c480ed |
</cpu>
|
|
|
c480ed |
diff --git a/tests/domaincapsschemadata/qemu_4.1.0.x86_64.xml b/tests/domaincapsschemadata/qemu_4.1.0.x86_64.xml
|
|
|
c480ed |
index 47aed6a43a..63ae7957c4 100644
|
|
|
c480ed |
--- a/tests/domaincapsschemadata/qemu_4.1.0.x86_64.xml
|
|
|
c480ed |
+++ b/tests/domaincapsschemadata/qemu_4.1.0.x86_64.xml
|
|
|
c480ed |
@@ -34,6 +34,7 @@
|
|
|
c480ed |
<feature policy='require' name='arch-capabilities'/>
|
|
|
c480ed |
<feature policy='require' name='xsaves'/>
|
|
|
c480ed |
<feature policy='require' name='pdpe1gb'/>
|
|
|
c480ed |
+ <feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
c480ed |
</mode>
|
|
|
c480ed |
<mode name='custom' supported='yes'>
|
|
|
c480ed |
<model usable='yes'>qemu64</model>
|
|
|
c480ed |
--
|
|
|
c480ed |
2.22.0
|
|
|
c480ed |
|