forked from rpms/libvirt
66 lines
2.6 KiB
Diff
66 lines
2.6 KiB
Diff
From bb9f39342d4ea6b76b67378f514f52a9627206b9 Mon Sep 17 00:00:00 2001
|
|
Message-Id: <bb9f39342d4ea6b76b67378f514f52a9627206b9@dist-git>
|
|
From: Tim Wiederhake <twiederh@redhat.com>
|
|
Date: Wed, 3 Mar 2021 11:11:52 +0100
|
|
Subject: [PATCH] cpumap: Add support for ibrs CPU feature
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
|
|
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
(cherry picked from commit 5c17a7ba41670f3182186c06e621995b5d03fc95)
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1926864
|
|
|
|
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
Message-Id: <0aee3baa35e04f56e3c95bb2f60c8a17d7806e7a.1614766279.git.jdenemar@redhat.com>
|
|
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
---
|
|
src/cpu_map/x86_features.xml | 3 +++
|
|
tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-guest.xml | 1 +
|
|
tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-host.xml | 1 +
|
|
3 files changed, 5 insertions(+)
|
|
|
|
diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml
|
|
index 83d8e641a8..abefb7928e 100644
|
|
--- a/src/cpu_map/x86_features.xml
|
|
+++ b/src/cpu_map/x86_features.xml
|
|
@@ -501,6 +501,9 @@
|
|
<feature name='ibpb'>
|
|
<cpuid eax_in='0x80000008' ebx='0x00001000'/>
|
|
</feature>
|
|
+ <feature name='ibrs'>
|
|
+ <cpuid eax_in='0x80000008' ebx='0x00004000'/>
|
|
+ </feature>
|
|
<feature name='amd-stibp'>
|
|
<cpuid eax_in='0x80000008' ebx='0x00008000'/>
|
|
</feature>
|
|
diff --git a/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-guest.xml b/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-guest.xml
|
|
index 6d95b508b2..40e7912398 100644
|
|
--- a/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-guest.xml
|
|
+++ b/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-guest.xml
|
|
@@ -17,6 +17,7 @@
|
|
<feature policy='require' name='topoext'/>
|
|
<feature policy='require' name='perfctr_nb'/>
|
|
<feature policy='require' name='invtsc'/>
|
|
+ <feature policy='require' name='ibrs'/>
|
|
<feature policy='require' name='amd-ssbd'/>
|
|
<feature policy='require' name='lbrv'/>
|
|
<feature policy='require' name='svm-lock'/>
|
|
diff --git a/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-host.xml b/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-host.xml
|
|
index 65eaeabdd0..9f8108cdaa 100644
|
|
--- a/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-host.xml
|
|
+++ b/tests/cputestdata/x86_64-cpuid-EPYC-7502-32-Core-host.xml
|
|
@@ -18,6 +18,7 @@
|
|
<feature name='topoext'/>
|
|
<feature name='perfctr_nb'/>
|
|
<feature name='invtsc'/>
|
|
+ <feature name='ibrs'/>
|
|
<feature name='amd-ssbd'/>
|
|
<feature name='lbrv'/>
|
|
<feature name='svm-lock'/>
|
|
--
|
|
2.30.0
|
|
|