[libvirt] [PATCH] cpu: Fix definition of flag smap

Peter Krempa pkrempa at redhat.com
Tue Oct 30 14:07:00 UTC 2012


A mild case of dyslexia caused that commit
012f9b19ef3812884e207dc431571502de4cebce specifies wrong mask for the
smap cpu feature flag. This patch fixes that mistake.
---
The flags definition file in qemu can be accessed at:
http://git.qemu.org/?p=qemu.git;a=blob;f=target-i386/cpu.c;h=f3708e63b76541b12dd9eafb3b42f4b4b85b48a9;hb=HEAD#l40
---

 src/cpu/cpu_map.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
index d059e20..f0a1f04 100644
--- a/src/cpu/cpu_map.xml
+++ b/src/cpu/cpu_map.xml
@@ -270,7 +270,7 @@
       <cpuid function='0x00000007' ebx='0x00000080'/>
     </feature>
     <feature name='smap'>
-      <cpuid function='0x00000007' ebx='0x00080000'/>
+      <cpuid function='0x00000007' ebx='0x00100000'/>
     </feature>

     <!-- models -->
-- 
1.7.12.4




More information about the libvir-list mailing list