[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [DO NOT APPLY PATCH XTF 1/2] x86: add UMIP feature bit



Strangely there was already one cpu_has_umip defined, so there is no
need for one in this patch.

Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 include/arch/x86/processor.h         | 1 +
 include/xen/arch-x86/cpufeatureset.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/include/arch/x86/processor.h b/include/arch/x86/processor.h
index 0106954..e2a2cbb 100644
--- a/include/arch/x86/processor.h
+++ b/include/arch/x86/processor.h
@@ -52,6 +52,7 @@
 #define X86_CR4_PCE             0x00000100  /* Performance counters at ipl 3  
*/
 #define X86_CR4_OSFXSR          0x00000200  /* Fast FPU save and restore      
*/
 #define X86_CR4_OSXMMEXCPT      0x00000400  /* Unmasked SSE exceptions        
*/
+#define X86_CR4_UMIP            0x00000800  /* UMIP                           
*/
 #define X86_CR4_VMXE            0x00002000  /* VMX                            
*/
 #define X86_CR4_SMXE            0x00004000  /* SMX                            
*/
 #define X86_CR4_FSGSBASE        0x00010000  /* {rd,wr}{fs,gs}base             
*/
diff --git a/include/xen/arch-x86/cpufeatureset.h 
b/include/xen/arch-x86/cpufeatureset.h
index 905e8e8..f66a4ab 100644
--- a/include/xen/arch-x86/cpufeatureset.h
+++ b/include/xen/arch-x86/cpufeatureset.h
@@ -144,6 +144,7 @@
 
 /* Intel-defined CPU features, CPUID level 0x00000007:0.ecx, word 6 */
 #define X86_FEATURE_PREFETCHWT1   (6*32+ 0) /* PREFETCHWT1 instruction */
+#define X86_FEATURE_UMIP          (6*32+ 2) /* User-Mode Instruction 
Prevention */
 #define X86_FEATURE_PKU           (6*32+ 3) /* Protection Keys for Userspace */
 #define X86_FEATURE_OSPKE         (6*32+ 4) /* OS Protection Keys Enable */
 
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.