[libvirt] [PATCH RESEND] cpu: Add support for pku and ospke Intel features for Memory Protection Keys

Lin Ma lma at suse.com
Mon Dec 5 06:56:48 UTC 2016


qemu commit: f74eefe0
https://lwn.net/Articles/667156/

Signed-off-by: Lin Ma <lma at suse.com>
---
 src/cpu/cpu_map.xml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
index 6da8321..dca5720 100644
--- a/src/cpu/cpu_map.xml
+++ b/src/cpu/cpu_map.xml
@@ -255,6 +255,13 @@
       <cpuid eax_in='0x07' ebx='0x10000000'/>
     </feature>
 
+    <feature name='pku'>
+      <cpuid eax_in='0x07' ecx='0x00000008'/>
+    </feature>
+    <feature name='ospke'>
+      <cpuid eax_in='0x07' ecx='0x00000010'/>
+    </feature>
+
     <!-- Processor Extended State Enumeration sub leaf 1 -->
     <feature name='xsaveopt'>
       <cpuid eax_in='0x0d' ecx_in='0x01' eax='0x00000001'/>
-- 
2.9.2




More information about the libvir-list mailing list