[libvirt PATCH 11/28] cpu_map: Add missing x86 feature "sgx2"

Tim Wiederhake posted 28 patches 3 years, 3 months ago
There is a newer version of this series
[libvirt PATCH 11/28] cpu_map: Add missing x86 feature "sgx2"
Posted by Tim Wiederhake 3 years, 3 months ago
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
---
 src/cpu_map/x86_features.xml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml
index aa3d6958bf..f3e53eebc9 100644
--- a/src/cpu_map/x86_features.xml
+++ b/src/cpu_map/x86_features.xml
@@ -418,6 +418,9 @@
   <feature name='sgx1'>
     <cpuid eax_in='0x12' ecx_in='0x00' ecx='0x00000001'/>
   </feature>
+  <feature name='sgx2'>
+    <cpuid eax_in='0x12' ecx_in='0x00' ecx='0x00000002'/>
+  </feature>
 
   <!-- extended features, EDX -->
   <feature name='syscall'>
-- 
2.36.1
Re: [libvirt PATCH 11/28] cpu_map: Add missing x86 feature "sgx2"
Posted by Jiri Denemark 3 years, 3 months ago
On Wed, Oct 19, 2022 at 18:56:11 +0200, Tim Wiederhake wrote:
> Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
> ---
>  src/cpu_map/x86_features.xml | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml
> index aa3d6958bf..f3e53eebc9 100644
> --- a/src/cpu_map/x86_features.xml
> +++ b/src/cpu_map/x86_features.xml
> @@ -418,6 +418,9 @@
>    <feature name='sgx1'>
>      <cpuid eax_in='0x12' ecx_in='0x00' ecx='0x00000001'/>
>    </feature>
> +  <feature name='sgx2'>
> +    <cpuid eax_in='0x12' ecx_in='0x00' ecx='0x00000002'/>
> +  </feature>

Again, this is in eax in QEMU.

Jirka