KVM: x86: Expose more Intel AVX512 feature to guest
PATCH 1/1 KVM: x86: Expose more Intel AVX512 feature to guest
Expose AVX512DQ, AVX512BW, AVX512VL feature to guest. Its spec can be found at:
https://software.intel.com/sites/default/files/managed/b4/3a/319433-024.pdf
--- arch/x86/kvm/cpuid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/x86/kvm/cpuid.c +2 -1
@@ -366,7 +366,8 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,F (FSGSBASE ) |F (BMI1 ) |F (HLE ) |F (AVX2 ) |F (SMEP ) |F (BMI2 ) |F (ERMS ) | f_invpcid |F (RTM ) | f_mpx |F (RDSEED ) |F (ADX ) |F (SMAP ) |F (AVX512F ) |F (AVX512PF ) |F (AVX512ER ) | -F (AVX512CD ) |F (CLFLUSHOPT ) |F (CLWB ) |F (PCOMMIT ); +F (AVX512CD ) |F (CLFLUSHOPT ) |F (CLWB ) |F (PCOMMIT ) | +F (AVX512DQ ) |F (AVX512BW ) |F (AVX512VL );/* cpuid 0xD.1.eax */ const u32 kvm_cpuid_D_1_eax_x86_features =
Signature · 1 line
2.7.4
Quoted 13 lines
Expose AVX512DQ, AVX512BW, AVX512VL feature to guest. Its spec can be found at:
https://software.intel.com/sites/default/files/managed/b4/3a/319433-024.pdfSigned-off-by Luwei Kang <[email protected]>--- arch/x86/kvm/cpuid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/x86/kvm/cpuid.c static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, · line 371
Quoted 7 lines
arch/x86/kvm/cpuid.c +2
-1@@ -366,7 +366,8 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,F (FSGSBASE ) |F (BMI1 ) |F (HLE ) |F (AVX2 ) |F (SMEP ) |F (BMI2 ) |F (ERMS ) | f_invpcid |F (RTM ) | f_mpx |F (RDSEED ) |F (ADX ) |F (SMAP ) |F (AVX512F ) |F (AVX512PF ) |F (AVX512ER ) | -F (AVX512CD ) |F (CLFLUSHOPT ) |F (CLWB ) |F (PCOMMIT ); +F (AVX512CD ) |F (CLFLUSHOPT ) |F (CLWB ) |F (PCOMMIT ) | +F (AVX512DQ ) |F (AVX512BW ) |F (AVX512VL );
Hi Paolo,
What is your opinion?
Quoted 4 lines
arch/x86/kvm/cpuid.c +0
-1/* cpuid 0xD.1.eax */ const u32 kvm_cpuid_D_1_eax_x86_features = --2.7.4
Paolo Bonzini
maintainerQuoted 9 lines
Quoted 9 lines
Expose AVX512DQ, AVX512BW, AVX512VL feature to guest. Its spec can be found at:
https://software.intel.com/sites/default/files/managed/b4/3a/319433-024.pdfSigned-off-by Luwei Kang <[email protected]>--- arch/x86/kvm/cpuid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Quoted 16 lines
arch/x86/kvm/cpuid.c static inline int __do_cpuid_ent(struct · line 372
Quoted 13 lines
arch/x86/kvm/cpuid.c index renamed from arch/x86/kvm/cpuid.c +0
-07597b42..a2d007c 100644
arch/x86/kvm/cpuid.c +2
-1@@ -366,7 +366,8 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, F(FSGSBASE) | F(BMI1) | F(HLE) | F(AVX2) | F(SMEP) | F(BMI2) | F(ERMS) | f_invpcid | F(RTM) | f_mpx | F(RDSEED) | F(ADX) | F(SMAP) | F(AVX512F) | F(AVX512PF) | F(AVX512ER) | - F(AVX512CD) | F(CLFLUSHOPT) | F(CLWB) | F(PCOMMIT); + F(AVX512CD) | F(CLFLUSHOPT) | F(CLWB) | F(PCOMMIT) | + F(AVX512DQ) | F(AVX512BW) | F(AVX512VL);Hi Paolo,
What is your opinion?
Hi, the patch was sent too late for 4.8 so I just ignored it. :) Radim is handling the tree now and I guess he'll get to it in the next few days. It's a trivial patch, so I don't expect any issue.
Paolo
2016-08-11 09:24-0400, Paolo Bonzini:
Quoted 26 lines
Quoted 9 lines
Quoted 9 lines
Expose AVX512DQ, AVX512BW, AVX512VL feature to guest. Its spec can be found at:
https://software.intel.com/sites/default/files/managed/b4/3a/319433-024.pdfSigned-off-by Luwei Kang <[email protected]>--- arch/x86/kvm/cpuid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Quoted 16 lines
arch/x86/kvm/cpuid.c static inline int __do_cpuid_ent(struct · line 372
Quoted 13 lines
arch/x86/kvm/cpuid.c index renamed from arch/x86/kvm/cpuid.c +0
-07597b42..a2d007c 100644
arch/x86/kvm/cpuid.c +2
-1@@ -366,7 +366,8 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, F(FSGSBASE) | F(BMI1) | F(HLE) | F(AVX2) | F(SMEP) | F(BMI2) | F(ERMS) | f_invpcid | F(RTM) | f_mpx | F(RDSEED) | F(ADX) | F(SMAP) | F(AVX512F) | F(AVX512PF) | F(AVX512ER) | - F(AVX512CD) | F(CLFLUSHOPT) | F(CLWB) | F(PCOMMIT); + F(AVX512CD) | F(CLFLUSHOPT) | F(CLWB) | F(PCOMMIT) | + F(AVX512DQ) | F(AVX512BW) | F(AVX512VL);Hi Paolo,
What is your opinion?
Quoted 3 lines
Hi, the patch was sent too late for 4.8 so I just ignored it. :) Radim is handling the tree now and I guess he'll get to it in the next few days. It's a trivial patch, so I don't expect any issue.
F(PCOMMIT) was removed in dfa169bbee00 ("Revert "KVM: x86: add pcommit support""), so the patch doesn't apply.
I made minor changes (see below) and queued for 4.9, thanks.
- F(AVX512CD) | F(CLFLUSHOPT) | F(CLWB); + F(AVX512CD) | F(CLFLUSHOPT) | F(CLWB) | F(AVX512DQ) | + F(AVX512BW) | F(AVX512VL);