[libvirt PATCH v3 07/10] cpu_map: Add support for fsrm CPU feature

Tim Wiederhake posted 10 patches 5 years, 2 months ago
[libvirt PATCH v3 07/10] cpu_map: Add support for fsrm CPU feature
Posted by Tim Wiederhake 5 years, 2 months ago
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
---
 src/cpu_map/x86_features.xml                             | 3 +++
 tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-guest.xml | 1 +
 tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-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 a55f52b16c..b0bf22d916 100644
--- a/src/cpu_map/x86_features.xml
+++ b/src/cpu_map/x86_features.xml
@@ -339,6 +339,9 @@
   <feature name='avx512-4fmaps'>
     <cpuid eax_in='0x07' ecx_in='0x00' edx='0x00000008'/>
   </feature>
+  <feature name='fsrm'>
+    <cpuid eax_in='0x07' ecx_in='0x00' edx='0x00000010'/>
+  </feature>
   <feature name='md-clear'> <!-- md_clear -->
     <cpuid eax_in='0x07' ecx_in='0x00' edx='0x00000400'/>
   </feature>
diff --git a/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-guest.xml b/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-guest.xml
index 9b75ace710..3a71b28cfb 100644
--- a/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-guest.xml
+++ b/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-guest.xml
@@ -24,6 +24,7 @@
   <feature policy='require' name='sha-ni'/>
   <feature policy='require' name='ospke'/>
   <feature policy='require' name='rdpid'/>
+  <feature policy='require' name='fsrm'/>
   <feature policy='require' name='stibp'/>
   <feature policy='require' name='arch-capabilities'/>
   <feature policy='require' name='xsaves'/>
diff --git a/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-host.xml b/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-host.xml
index efbf9d363b..1582de0422 100644
--- a/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-host.xml
+++ b/tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-host.xml
@@ -25,6 +25,7 @@
   <feature name='sha-ni'/>
   <feature name='ospke'/>
   <feature name='rdpid'/>
+  <feature name='fsrm'/>
   <feature name='stibp'/>
   <feature name='arch-capabilities'/>
   <feature name='xsaves'/>
-- 
2.26.2

Re: [libvirt PATCH v3 07/10] cpu_map: Add support for fsrm CPU feature
Posted by Jiri Denemark 5 years, 2 months ago
On Mon, Nov 23, 2020 at 15:14:30 +0100, Tim Wiederhake wrote:
> Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
> ---
>  src/cpu_map/x86_features.xml                             | 3 +++
>  tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-guest.xml | 1 +
>  tests/cputestdata/x86_64-cpuid-Ice-Lake-Server-host.xml  | 1 +
>  3 files changed, 5 insertions(+)

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>