Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
#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 */
/* 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 */