KVM: Remove RDWRGSFS bit from CR4_RESERVED_BITS
authorYang, Wei <wei.y.yang@intel.com>
Tue, 14 Jun 2011 12:10:17 +0000 (20:10 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:22 +0000 (13:16 +0300)
This patch removes RDWRGSFS bit from CR4_RESERVED_BITS.

Signed-off-by: Yang, Wei <wei.y.yang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/include/asm/processor-flags.h

index fc38eca116c042bf8b6323b97cc87105ea5d53b4..554be456f11ebbdb1106cbc85df5a20bbc80d0ba 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_SMEP              \
+                         | X86_CR4_OSXSAVE | X86_CR4_SMEP | X86_CR4_RDWRGSFS \
                          | X86_CR4_OSXMMEXCPT | X86_CR4_VMXE))
 
 #define CR8_RESERVED_BITS (~(unsigned long)X86_CR8_TPR)
index 59ab4dffa37794023f2dd5f29ab8dabd7325b0bb..2dddb317bb39c7e9693d56f52a2264e81e6837fb 100644 (file)
@@ -59,6 +59,7 @@
 #define X86_CR4_OSFXSR 0x00000200 /* enable fast FPU save and restore */
 #define X86_CR4_OSXMMEXCPT 0x00000400 /* enable unmasked SSE exceptions */
 #define X86_CR4_VMXE   0x00002000 /* enable VMX virtualization */
+#define X86_CR4_RDWRGSFS 0x00010000 /* enable RDWRGSFS support */
 #define X86_CR4_OSXSAVE 0x00040000 /* enable xsave and xrestore */
 #define X86_CR4_SMEP   0x00100000 /* enable SMEP support */