|
|
fbe740 |
From 7d0790fb5061cb956390ce5f7a2b92ac9702ada6 Mon Sep 17 00:00:00 2001
|
|
|
fbe740 |
Message-Id: <7d0790fb5061cb956390ce5f7a2b92ac9702ada6@dist-git>
|
|
|
fbe740 |
From: Jiri Denemark <jdenemar@redhat.com>
|
|
|
fbe740 |
Date: Tue, 26 May 2020 10:59:39 +0200
|
|
|
fbe740 |
Subject: [PATCH] cpu_map: Add pschange-mc-no bit in IA32_ARCH_CAPABILITIES MSR
|
|
|
fbe740 |
MIME-Version: 1.0
|
|
|
fbe740 |
Content-Type: text/plain; charset=UTF-8
|
|
|
fbe740 |
Content-Transfer-Encoding: 8bit
|
|
|
fbe740 |
|
|
|
fbe740 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
fbe740 |
(cherry picked from commit 12eb0c9496e802bad9e5ec71cde888b8fdb1b0b4)
|
|
|
fbe740 |
|
|
|
fbe740 |
https://bugzilla.redhat.com/show_bug.cgi?id=1781878
|
|
|
fbe740 |
|
|
|
fbe740 |
Conflicts:
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Ryzen-9-3900X-12-Core-enabled.xml
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Ryzen-9-3900X-12-Core-guest.xml
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Ryzen-9-3900X-12-Core-host.xml
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Ryzen-9-3900X-12-Core-json.xml
|
|
|
fbe740 |
tests/domaincapsdata/qemu_5.1.0-q35.x86_64.xml
|
|
|
fbe740 |
tests/domaincapsdata/qemu_5.1.0.x86_64.xml
|
|
|
fbe740 |
- test data files do not exist downstream
|
|
|
fbe740 |
|
|
|
fbe740 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
fbe740 |
Message-Id: <d106df21f8423a9acff9eb5bf75ab25611c1de1f.1590483392.git.jdenemar@redhat.com>
|
|
|
fbe740 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
fbe740 |
---
|
|
|
fbe740 |
src/cpu_map/x86_features.xml | 3 +++
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Cooperlake-guest.xml | 1 +
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Cooperlake-host.xml | 1 +
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Cooperlake-json.xml | 1 +
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Core-i7-8550U-enabled.xml | 2 +-
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Core-i7-8550U-guest.xml | 1 +
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Core-i7-8550U-host.xml | 1 +
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Core-i7-8550U-json.xml | 1 +
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Xeon-Platinum-9242-enabled.xml | 2 +-
|
|
|
fbe740 |
tests/cputestdata/x86_64-cpuid-Xeon-Platinum-9242-json.xml | 1 +
|
|
|
fbe740 |
tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml | 1 +
|
|
|
fbe740 |
tests/domaincapsdata/qemu_4.2.0.x86_64.xml | 1 +
|
|
|
fbe740 |
tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml | 1 +
|
|
|
fbe740 |
tests/domaincapsdata/qemu_5.0.0.x86_64.xml | 1 +
|
|
|
fbe740 |
14 files changed, 16 insertions(+), 2 deletions(-)
|
|
|
fbe740 |
|
|
|
fbe740 |
diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml
|
|
|
fbe740 |
index 2c4c29dc99..8525ae0fa5 100644
|
|
|
fbe740 |
--- a/src/cpu_map/x86_features.xml
|
|
|
fbe740 |
+++ b/src/cpu_map/x86_features.xml
|
|
|
fbe740 |
@@ -509,6 +509,9 @@
|
|
|
fbe740 |
<feature name='mds-no'>
|
|
|
fbe740 |
<msr index='0x10a' edx='0x00000000' eax='0x00000020'/>
|
|
|
fbe740 |
</feature>
|
|
|
fbe740 |
+ <feature name='pschange-mc-no'>
|
|
|
fbe740 |
+ <msr index='0x10a' edx='0x00000000' eax='0x00000040'/>
|
|
|
fbe740 |
+ </feature>
|
|
|
fbe740 |
<feature name='tsx-ctrl'>
|
|
|
fbe740 |
<msr index='0x10a' edx='0x00000000' eax='0x00000080'/>
|
|
|
fbe740 |
</feature>
|
|
|
fbe740 |
diff --git a/tests/cputestdata/x86_64-cpuid-Cooperlake-guest.xml b/tests/cputestdata/x86_64-cpuid-Cooperlake-guest.xml
|
|
|
fbe740 |
index b5137e3c03..db5598740c 100644
|
|
|
fbe740 |
--- a/tests/cputestdata/x86_64-cpuid-Cooperlake-guest.xml
|
|
|
fbe740 |
+++ b/tests/cputestdata/x86_64-cpuid-Cooperlake-guest.xml
|
|
|
fbe740 |
@@ -35,6 +35,7 @@
|
|
|
fbe740 |
<feature policy='require' name='ibrs-all'/>
|
|
|
fbe740 |
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
fbe740 |
<feature policy='require' name='mds-no'/>
|
|
|
fbe740 |
+ <feature policy='require' name='pschange-mc-no'/>
|
|
|
fbe740 |
<feature policy='require' name='tsx-ctrl'/>
|
|
|
fbe740 |
<feature policy='require' name='taa-no'/>
|
|
|
fbe740 |
</cpu>
|
|
|
fbe740 |
diff --git a/tests/cputestdata/x86_64-cpuid-Cooperlake-host.xml b/tests/cputestdata/x86_64-cpuid-Cooperlake-host.xml
|
|
|
fbe740 |
index 52b352f4f1..6926b7c975 100644
|
|
|
fbe740 |
--- a/tests/cputestdata/x86_64-cpuid-Cooperlake-host.xml
|
|
|
fbe740 |
+++ b/tests/cputestdata/x86_64-cpuid-Cooperlake-host.xml
|
|
|
fbe740 |
@@ -36,6 +36,7 @@
|
|
|
fbe740 |
<feature name='ibrs-all'/>
|
|
|
fbe740 |
<feature name='skip-l1dfl-vmentry'/>
|
|
|
fbe740 |
<feature name='mds-no'/>
|
|
|
fbe740 |
+ <feature name='pschange-mc-no'/>
|
|
|
fbe740 |
<feature name='tsx-ctrl'/>
|
|
|
fbe740 |
<feature name='taa-no'/>
|
|
|
fbe740 |
</cpu>
|
|
|
fbe740 |
diff --git a/tests/cputestdata/x86_64-cpuid-Cooperlake-json.xml b/tests/cputestdata/x86_64-cpuid-Cooperlake-json.xml
|
|
|
fbe740 |
index e323d6205e..fc52805b2f 100644
|
|
|
fbe740 |
--- a/tests/cputestdata/x86_64-cpuid-Cooperlake-json.xml
|
|
|
fbe740 |
+++ b/tests/cputestdata/x86_64-cpuid-Cooperlake-json.xml
|
|
|
fbe740 |
@@ -18,6 +18,7 @@
|
|
|
fbe740 |
<feature policy='require' name='ibrs-all'/>
|
|
|
fbe740 |
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
fbe740 |
<feature policy='require' name='mds-no'/>
|
|
|
fbe740 |
+ <feature policy='require' name='pschange-mc-no'/>
|
|
|
fbe740 |
<feature policy='require' name='tsx-ctrl'/>
|
|
|
fbe740 |
<feature policy='require' name='taa-no'/>
|
|
|
fbe740 |
</cpu>
|
|
|
fbe740 |
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-enabled.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-enabled.xml
|
|
|
fbe740 |
index 6c480eeacf..57f8ebabba 100644
|
|
|
fbe740 |
--- a/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-enabled.xml
|
|
|
fbe740 |
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-enabled.xml
|
|
|
fbe740 |
@@ -5,5 +5,5 @@
|
|
|
fbe740 |
<cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x009c47ab' ecx='0x00000004' edx='0xac000400'/>
|
|
|
fbe740 |
<cpuid eax_in='0x0000000d' ecx_in='0x01' eax='0x0000000f' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
|
|
|
fbe740 |
<cpuid eax_in='0x80000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000121' edx='0x2c100800'/>
|
|
|
fbe740 |
- <msr index='0x10a' edx='0x00000000' eax='0x00000008'/>
|
|
|
fbe740 |
+ <msr index='0x10a' edx='0x00000000' eax='0x00000048'/>
|
|
|
fbe740 |
</cpudata>
|
|
|
fbe740 |
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-guest.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-guest.xml
|
|
|
fbe740 |
index 92404e4d03..ed06515e99 100644
|
|
|
fbe740 |
--- a/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-guest.xml
|
|
|
fbe740 |
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-guest.xml
|
|
|
fbe740 |
@@ -26,6 +26,7 @@
|
|
|
fbe740 |
<feature policy='require' name='pdpe1gb'/>
|
|
|
fbe740 |
<feature policy='require' name='invtsc'/>
|
|
|
fbe740 |
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
fbe740 |
+ <feature policy='require' name='pschange-mc-no'/>
|
|
|
fbe740 |
<feature policy='disable' name='hle'/>
|
|
|
fbe740 |
<feature policy='disable' name='rtm'/>
|
|
|
fbe740 |
</cpu>
|
|
|
fbe740 |
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-host.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-host.xml
|
|
|
fbe740 |
index 7f6fe2eac3..7681c94649 100644
|
|
|
fbe740 |
--- a/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-host.xml
|
|
|
fbe740 |
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-host.xml
|
|
|
fbe740 |
@@ -27,4 +27,5 @@
|
|
|
fbe740 |
<feature name='pdpe1gb'/>
|
|
|
fbe740 |
<feature name='invtsc'/>
|
|
|
fbe740 |
<feature name='skip-l1dfl-vmentry'/>
|
|
|
fbe740 |
+ <feature name='pschange-mc-no'/>
|
|
|
fbe740 |
</cpu>
|
|
|
fbe740 |
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-json.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-json.xml
|
|
|
fbe740 |
index 645c0934c2..4774d39c7e 100644
|
|
|
fbe740 |
--- a/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-json.xml
|
|
|
fbe740 |
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-8550U-json.xml
|
|
|
fbe740 |
@@ -14,6 +14,7 @@
|
|
|
fbe740 |
<feature policy='require' name='xsaves'/>
|
|
|
fbe740 |
<feature policy='require' name='pdpe1gb'/>
|
|
|
fbe740 |
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
fbe740 |
+ <feature policy='require' name='pschange-mc-no'/>
|
|
|
fbe740 |
<feature policy='disable' name='hle'/>
|
|
|
fbe740 |
<feature policy='disable' name='rtm'/>
|
|
|
fbe740 |
</cpu>
|
|
|
fbe740 |
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-9242-enabled.xml b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-9242-enabled.xml
|
|
|
fbe740 |
index 43c3a93a16..cd082feffe 100644
|
|
|
fbe740 |
--- a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-9242-enabled.xml
|
|
|
fbe740 |
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-9242-enabled.xml
|
|
|
fbe740 |
@@ -6,5 +6,5 @@
|
|
|
fbe740 |
<cpuid eax_in='0x0000000d' ecx_in='0x01' eax='0x0000000f' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
|
|
|
fbe740 |
<cpuid eax_in='0x80000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000121' edx='0x2c100800'/>
|
|
|
fbe740 |
<cpuid eax_in='0x80000008' ecx_in='0x00' eax='0x00000000' ebx='0x01001000' ecx='0x00000000' edx='0x00000000'/>
|
|
|
fbe740 |
- <msr index='0x10a' edx='0x00000000' eax='0x000000ab'/>
|
|
|
fbe740 |
+ <msr index='0x10a' edx='0x00000000' eax='0x000000eb'/>
|
|
|
fbe740 |
</cpudata>
|
|
|
fbe740 |
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-9242-json.xml b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-9242-json.xml
|
|
|
fbe740 |
index 36e95029be..10c256ee1e 100644
|
|
|
fbe740 |
--- a/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-9242-json.xml
|
|
|
fbe740 |
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-Platinum-9242-json.xml
|
|
|
fbe740 |
@@ -17,5 +17,6 @@
|
|
|
fbe740 |
<feature policy='require' name='ibrs-all'/>
|
|
|
fbe740 |
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
fbe740 |
<feature policy='require' name='mds-no'/>
|
|
|
fbe740 |
+ <feature policy='require' name='pschange-mc-no'/>
|
|
|
fbe740 |
<feature policy='require' name='tsx-ctrl'/>
|
|
|
fbe740 |
</cpu>
|
|
|
fbe740 |
diff --git a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml
|
|
|
fbe740 |
index e257657981..4d9616cb69 100644
|
|
|
fbe740 |
--- a/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml
|
|
|
fbe740 |
+++ b/tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml
|
|
|
fbe740 |
@@ -47,6 +47,7 @@
|
|
|
fbe740 |
<feature policy='require' name='pdpe1gb'/>
|
|
|
fbe740 |
<feature policy='require' name='invtsc'/>
|
|
|
fbe740 |
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
fbe740 |
+ <feature policy='require' name='pschange-mc-no'/>
|
|
|
fbe740 |
</mode>
|
|
|
fbe740 |
<mode name='custom' supported='yes'>
|
|
|
fbe740 |
<model usable='yes'>qemu64</model>
|
|
|
fbe740 |
diff --git a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml b/tests/domaincapsdata/qemu_4.2.0.x86_64.xml
|
|
|
fbe740 |
index 2918ba9715..5210c917aa 100644
|
|
|
fbe740 |
--- a/tests/domaincapsdata/qemu_4.2.0.x86_64.xml
|
|
|
fbe740 |
+++ b/tests/domaincapsdata/qemu_4.2.0.x86_64.xml
|
|
|
fbe740 |
@@ -46,6 +46,7 @@
|
|
|
fbe740 |
<feature policy='require' name='pdpe1gb'/>
|
|
|
fbe740 |
<feature policy='require' name='invtsc'/>
|
|
|
fbe740 |
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
fbe740 |
+ <feature policy='require' name='pschange-mc-no'/>
|
|
|
fbe740 |
</mode>
|
|
|
fbe740 |
<mode name='custom' supported='yes'>
|
|
|
fbe740 |
<model usable='yes'>qemu64</model>
|
|
|
fbe740 |
diff --git a/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml b/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml
|
|
|
fbe740 |
index 7b2a929738..b7e2c8a4fe 100644
|
|
|
fbe740 |
--- a/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml
|
|
|
fbe740 |
+++ b/tests/domaincapsdata/qemu_5.0.0-q35.x86_64.xml
|
|
|
fbe740 |
@@ -47,6 +47,7 @@
|
|
|
fbe740 |
<feature policy='require' name='pdpe1gb'/>
|
|
|
fbe740 |
<feature policy='require' name='invtsc'/>
|
|
|
fbe740 |
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
fbe740 |
+ <feature policy='require' name='pschange-mc-no'/>
|
|
|
fbe740 |
</mode>
|
|
|
fbe740 |
<mode name='custom' supported='yes'>
|
|
|
fbe740 |
<model usable='yes'>qemu64</model>
|
|
|
fbe740 |
diff --git a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml b/tests/domaincapsdata/qemu_5.0.0.x86_64.xml
|
|
|
fbe740 |
index 7609d49020..d2741375b4 100644
|
|
|
fbe740 |
--- a/tests/domaincapsdata/qemu_5.0.0.x86_64.xml
|
|
|
fbe740 |
+++ b/tests/domaincapsdata/qemu_5.0.0.x86_64.xml
|
|
|
fbe740 |
@@ -46,6 +46,7 @@
|
|
|
fbe740 |
<feature policy='require' name='pdpe1gb'/>
|
|
|
fbe740 |
<feature policy='require' name='invtsc'/>
|
|
|
fbe740 |
<feature policy='require' name='skip-l1dfl-vmentry'/>
|
|
|
fbe740 |
+ <feature policy='require' name='pschange-mc-no'/>
|
|
|
fbe740 |
</mode>
|
|
|
fbe740 |
<mode name='custom' supported='yes'>
|
|
|
fbe740 |
<model usable='yes'>qemu64</model>
|
|
|
fbe740 |
--
|
|
|
fbe740 |
2.26.2
|
|
|
fbe740 |
|