add missing cpufeatures, vmexits and vmcs defines for broadwell/haswell
PATCH 1/1 add missing cpufeatures, vmexits and vmcs defines for broadwell/haswell
Signed-off-bye: Jason L. Wright <[email protected]>
--- xen/include/asm-x86/cpufeature.h | 6 ++++++ xen/include/asm-x86/hvm/vmx/vmcs.h | 5 +++++ xen/include/asm-x86/hvm/vmx/vmx.h | 5 +++++ 3 files changed, 16 insertions(+)
xen/include/asm-x86/cpufeature.h +6 -0
@@ -140,6 +140,7 @@/* Intel-defined CPU features, CPUID level 0x00000007:0 (ebx), word 7 */ #define X86_FEATURE_FSGSBASE (7*32+ 0)/* {RD,WR}{FS,GS}BASE instructions */ +#define X86_FEATURE_TSC_ADJUST (7*32+ 1)/* TSC adjustment MSR 0x3b */ #define X86_FEATURE_BMI1 (7*32+ 3)/* 1st bit manipulation extensions */ #define X86_FEATURE_HLE (7*32+ 4)/* Hardware Lock Elision */ #define X86_FEATURE_AVX2 (7*32+ 5)/* AVX2 instructions */
@@ -150,9 +151,14 @@#define X86_FEATURE_RTM (7*32+11)/* Restricted Transactional Memory */ #define X86_FEATURE_NO_FPU_SEL (7*32+13)/* FPU CS/DS stored as zero */ #define X86_FEATURE_MPX (7*32+14)/* Memory Protection Extensions */ +#define X86_FEATURE_AVX512F (7*32+16)/* AVX-512 Foundation */ #define X86_FEATURE_RDSEED (7*32+18)/* RDSEED instruction */ #define X86_FEATURE_ADX (7*32+19)/* ADCX, ADOX instructions */ #define X86_FEATURE_SMAP (7*32+20)/* Supervisor Mode Access Prevention */ +#define X86_FEATURE_CLFLUSHOPT (7*32+23)/* CLFLUSHOPT instruction */ +#define X86_FEATURE_AVX512PF (7*32+26)/* AVX-512 Prefetch */ +#define X86_FEATURE_AVX512ER (7*32+27)/* AVX-512 Exponential and Reciprocal */ +#define X86_FEATURE_AVX512CD (7*32+28)/* AVX-512 Conflict Detection */ #ifndef __ASSEMBLY__#define cpu_has (c, bit) test_bit(bit, (c)->x86_capability)
xen/include/asm-x86/hvm/vmx/vmcs.h +5 -0
@@ -212,8 +212,13 @@ extern u32 vmx_vmentry_control;#define SECONDARY_EXEC_APIC_REGISTER_VIRT 0x00000100#define SECONDARY_EXEC_VIRTUAL_INTR_DELIVERY 0x00000200#define SECONDARY_EXEC_PAUSE_LOOP_EXITING 0x00000400 +#define SECONDARY_EXEC_RDRAND_EXITING 0x00000800#define SECONDARY_EXEC_ENABLE_INVPCID 0x00001000 +#define SECONDARY_EXEC_ENABLE_VMFUNCS 0x00002000#define SECONDARY_EXEC_ENABLE_VMCS_SHADOWING 0x00004000 +#define SECONDARY_EXEC_RDSEED_EXITING 0x00010000 +#define SECONDARY_EXEC_EPT_VIOLATION_VE 0x00040000 +#define SECONDARY_EXEC_ENABLE_XSAVES 0x00100000extern u32 vmx_secondary_exec_control;#define VMX_EPT_EXEC_ONLY_SUPPORTED 0x00000001
xen/include/asm-x86/hvm/vmx/vmx.h +5 -0
@@ -184,7 +184,12 @@ static inline unsigned long pi_get_pir(struct pi_desc *pi_desc, int group)#define EXIT_REASON_WBINVD 54#define EXIT_REASON_XSETBV 55#define EXIT_REASON_APIC_WRITE 56 +#define EXIT_REASON_RDRAND 57#define EXIT_REASON_INVPCID 58 +#define EXIT_REASON_VMFUNC 59 +#define EXIT_REASON_RDSEED 61 +#define EXIT_REASON_XSAVES 63 +#define EXIT_REASON_XRSTORS 64/* * Interruption-information format
Signature · 1 line
1.9.1
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 18.06.14 at 17:53, <[email protected]> wrote:
Signed-off-bye: Jason L. Wright <[email protected]>
--- xen/include/asm-x86/cpufeature.h | 6 ++++++ xen/include/asm-x86/hvm/vmx/vmcs.h | 5 +++++ xen/include/asm-x86/hvm/vmx/vmx.h | 5 +++++ 3 files changed, 16 insertions(+)
Kind of a benign (not to say pointless) change without the new definitions actually being used?
Jan
Quoted 11 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 18.06.14 at 17:53, <[email protected]> wrote:
Signed-off-bye: Jason L. Wright <[email protected]>
---xen/include/asm-x86/cpufeature.h | 6 ++++++ xen/include/asm-x86/hvm/vmx/vmcs.h | 5 +++++ xen/include/asm-x86/hvm/vmx/vmx.h | 5 +++++ 3 files changed, 16 insertions(+)Kind of a benign (not to say pointless) change without the new definitions actually being used?
Saves one the time of having to find the definitions scattered among the manuals… Like I was doing hacking on something else.
—Jason L. Wright
Quoted 13 lines
From: Jason L. Wright [mailto:[email protected]]
Sent: Wednesday, June 18, 2014 9:11 AMQuoted 8 lines · Jan Beulich
Quoted 7 lines
Quoted 1 line
Quoted 1 line · On 18.06.14 at 17:53, <[email protected]> wrote:
Signed-off-bye: Jason L. Wright <[email protected]>
---xen/include/asm-x86/cpufeature.h | 6 ++++++ xen/include/asm-x86/hvm/vmx/vmcs.h | 5 +++++ xen/include/asm-x86/hvm/vmx/vmx.h | 5 +++++ 3 files changed, 16 insertions(+)
Quoted 8 lines
Quoted 3 lines
Kind of a benign (not to say pointless) change without the new definitions actually being used?
Saves one the time of having to find the definitions scattered among the manuals... Like I was doing hacking on something else.
-Jason L. Wright
better to have real usage together with the definition change, otherwise it causes more confusion on how Xen actually uses them...
Thanks
Kevin