]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: Remove SMEP bit from CR4_RESERVED_BITS
authorYang, Wei Y <wei.y.yang@intel.com>
Fri, 3 Jun 2011 03:13:35 +0000 (11:13 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:12 +0000 (13:16 +0300)
This patch removes SMEP bit from CR4_RESERVED_BITS.

Signed-off-by: Yang, Wei <wei.y.yang@intel.com>
Signed-off-by: Shan, Haitao <haitao.shan@intel.com>
Signed-off-by: Li, Xin <xin.li@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h

index d167039ecdf454eb71f01d8f0a271b321b69b883..fc38eca116c042bf8b6323b97cc87105ea5d53b4 100644 (file)
@@ -48,7 +48,7 @@
        (~(unsigned long)(X86_CR4_VME | X86_CR4_PVI | X86_CR4_TSD | X86_CR4_DE\
                          | X86_CR4_PSE | X86_CR4_PAE | X86_CR4_MCE     \
                          | X86_CR4_PGE | X86_CR4_PCE | X86_CR4_OSFXSR  \
-                         | X86_CR4_OSXSAVE \
+                         | X86_CR4_OSXSAVE | X86_CR4_SMEP              \
                          | X86_CR4_OSXMMEXCPT | X86_CR4_VMXE))
 
 #define CR8_RESERVED_BITS (~(unsigned long)X86_CR8_TPR)