[libvirt PATCH v3 12/24] cpu_map: Add missing x86 features "sgx-..."

Tim Wiederhake twiederh at redhat.com
Fri Nov 4 15:43:32 UTC 2022


Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
Reviewed-by: Jiri Denemark <jdenemar at redhat.com>
---
 src/cpu_map/x86_features.xml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml
index 00d4677c3b..0ceaa1bec5 100644
--- a/src/cpu_map/x86_features.xml
+++ b/src/cpu_map/x86_features.xml
@@ -422,6 +422,23 @@
     <cpuid eax_in='0x12' ecx_in='0x00' ebx='0x00000001'/>
   </feature>
 
+  <!-- cpuid level 0x00000012 ecx 0x1 features -->
+  <feature name='sgx-debug'>
+    <cpuid eax_in='0x12' ecx_in='0x01' eax='0x00000002'/>
+  </feature>
+  <feature name='sgx-mode64'>
+    <cpuid eax_in='0x12' ecx_in='0x01' eax='0x00000004'/>
+  </feature>
+  <feature name='sgx-provisionkey'>
+    <cpuid eax_in='0x12' ecx_in='0x01' eax='0x00000010'/>
+  </feature>
+  <feature name='sgx-tokenkey'>
+    <cpuid eax_in='0x12' ecx_in='0x01' eax='0x00000020'/>
+  </feature>
+  <feature name='sgx-kss'>
+    <cpuid eax_in='0x12' ecx_in='0x01' eax='0x00000080'/>
+  </feature>
+
   <!-- extended features, EDX -->
   <feature name='syscall'>
     <cpuid eax_in='0x80000001' edx='0x00000800'/>
-- 
2.36.1



More information about the libvir-list mailing list