|
|
397dc2 |
From 4b6dd39819e82b0775e0f324b0b4efa537882878 Mon Sep 17 00:00:00 2001
|
|
|
397dc2 |
Message-Id: <4b6dd39819e82b0775e0f324b0b4efa537882878@dist-git>
|
|
|
397dc2 |
From: Tim Wiederhake <twiederh@redhat.com>
|
|
|
397dc2 |
Date: Fri, 15 Jan 2021 15:17:21 +0100
|
|
|
397dc2 |
Subject: [PATCH] cpu_map: Add support for split-lock-detect CPU feature
|
|
|
397dc2 |
|
|
|
397dc2 |
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
|
|
|
397dc2 |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
397dc2 |
(cherry picked from commit 13db542cf3099f7955438e208dbe4b2b4e58067e)
|
|
|
397dc2 |
|
|
|
397dc2 |
https://bugzilla.redhat.com/show_bug.cgi?id=1537734
|
|
|
397dc2 |
|
|
|
397dc2 |
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
|
|
|
397dc2 |
Message-Id: <20210115141722.14986-6-twiederh@redhat.com>
|
|
|
397dc2 |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
397dc2 |
---
|
|
|
397dc2 |
src/cpu_map/x86_features.xml | 5 +++++
|
|
|
397dc2 |
tests/cputestdata/x86_64-cpuid-Atom-P5362-disabled.xml | 1 +
|
|
|
397dc2 |
tests/cputestdata/x86_64-cpuid-Atom-P5362-guest.xml | 1 +
|
|
|
397dc2 |
tests/cputestdata/x86_64-cpuid-Atom-P5362-host.xml | 1 +
|
|
|
397dc2 |
4 files changed, 8 insertions(+)
|
|
|
397dc2 |
|
|
|
397dc2 |
diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml
|
|
|
397dc2 |
index f8c0b9046c..83d8e641a8 100644
|
|
|
397dc2 |
--- a/src/cpu_map/x86_features.xml
|
|
|
397dc2 |
+++ b/src/cpu_map/x86_features.xml
|
|
|
397dc2 |
@@ -574,4 +574,9 @@
|
|
|
397dc2 |
<feature name='taa-no'>
|
|
|
397dc2 |
<msr index='0x10a' edx='0x00000000' eax='0x00000100'/>
|
|
|
397dc2 |
</feature>
|
|
|
397dc2 |
+
|
|
|
397dc2 |
+
|
|
|
397dc2 |
+ <feature name='split-lock-detect'>
|
|
|
397dc2 |
+ <msr index='0xcf' edx='0x00000000' eax='0x00000020'/>
|
|
|
397dc2 |
+ </feature>
|
|
|
397dc2 |
</cpus>
|
|
|
397dc2 |
diff --git a/tests/cputestdata/x86_64-cpuid-Atom-P5362-disabled.xml b/tests/cputestdata/x86_64-cpuid-Atom-P5362-disabled.xml
|
|
|
397dc2 |
index 50e8084140..81ffa7bfd3 100644
|
|
|
397dc2 |
--- a/tests/cputestdata/x86_64-cpuid-Atom-P5362-disabled.xml
|
|
|
397dc2 |
+++ b/tests/cputestdata/x86_64-cpuid-Atom-P5362-disabled.xml
|
|
|
397dc2 |
@@ -4,5 +4,6 @@
|
|
|
397dc2 |
<cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x02001000' ecx='0x00000020' edx='0x40000000'/>
|
|
|
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 |
+ <msr index='0xcf' edx='0x00000000' eax='0x00000020'/>
|
|
|
397dc2 |
<msr index='0x10a' edx='0x00000000' eax='0x00000100'/>
|
|
|
397dc2 |
</cpudata>
|
|
|
397dc2 |
diff --git a/tests/cputestdata/x86_64-cpuid-Atom-P5362-guest.xml b/tests/cputestdata/x86_64-cpuid-Atom-P5362-guest.xml
|
|
|
397dc2 |
index 4ad95f06b4..2eeff136c4 100644
|
|
|
397dc2 |
--- a/tests/cputestdata/x86_64-cpuid-Atom-P5362-guest.xml
|
|
|
397dc2 |
+++ b/tests/cputestdata/x86_64-cpuid-Atom-P5362-guest.xml
|
|
|
397dc2 |
@@ -53,6 +53,7 @@
|
|
|
397dc2 |
<feature policy='require' name='mds-no'/>
|
|
|
397dc2 |
<feature policy='require' name='pschange-mc-no'/>
|
|
|
397dc2 |
<feature policy='require' name='taa-no'/>
|
|
|
397dc2 |
+ <feature policy='require' name='split-lock-detect'/>
|
|
|
397dc2 |
<feature policy='disable' name='avx'/>
|
|
|
397dc2 |
<feature policy='disable' name='f16c'/>
|
|
|
397dc2 |
</cpu>
|
|
|
397dc2 |
diff --git a/tests/cputestdata/x86_64-cpuid-Atom-P5362-host.xml b/tests/cputestdata/x86_64-cpuid-Atom-P5362-host.xml
|
|
|
397dc2 |
index cc2b208e6a..b3e9d5c1ff 100644
|
|
|
397dc2 |
--- a/tests/cputestdata/x86_64-cpuid-Atom-P5362-host.xml
|
|
|
397dc2 |
+++ b/tests/cputestdata/x86_64-cpuid-Atom-P5362-host.xml
|
|
|
397dc2 |
@@ -64,4 +64,5 @@
|
|
|
397dc2 |
<feature name='mds-no'/>
|
|
|
397dc2 |
<feature name='pschange-mc-no'/>
|
|
|
397dc2 |
<feature name='taa-no'/>
|
|
|
397dc2 |
+ <feature name='split-lock-detect'/>
|
|
|
397dc2 |
</cpu>
|
|
|
397dc2 |
--
|
|
|
397dc2 |
2.30.0
|
|
|
397dc2 |
|