render / rpms / libvirt

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