kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] KVM: x86: Expose AVX512 VP2INTERSECT in cpuid for TGL
@ 2020-03-17  6:55 Zhenyu Wang
  2020-03-17  8:27 ` Paolo Bonzini
  0 siblings, 1 reply; 4+ messages in thread
From: Zhenyu Wang @ 2020-03-17  6:55 UTC (permalink / raw)
  To: pbonzini; +Cc: kvm, linux-kernel, Zhong, Yang

On Tigerlake new AVX512 VP2INTERSECT feature is available.
This would expose it for KVM supported cpuid.

Cc: "Zhong, Yang" <yang.zhong@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
---
 arch/x86/kvm/cpuid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index b1c469446b07..b4e25ff6ab0a 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -374,7 +374,7 @@ static inline void do_cpuid_7_mask(struct kvm_cpuid_entry2 *entry, int index)
 	const u32 kvm_cpuid_7_0_edx_x86_features =
 		F(AVX512_4VNNIW) | F(AVX512_4FMAPS) | F(SPEC_CTRL) |
 		F(SPEC_CTRL_SSBD) | F(ARCH_CAPABILITIES) | F(INTEL_STIBP) |
-		F(MD_CLEAR);
+		F(MD_CLEAR) | F(AVX512_VP2INTERSECT);
 
 	/* cpuid 7.1.eax */
 	const u32 kvm_cpuid_7_1_eax_x86_features =
-- 
2.25.0.rc2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-18 11:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-17  6:55 [PATCH] KVM: x86: Expose AVX512 VP2INTERSECT in cpuid for TGL Zhenyu Wang
2020-03-17  8:27 ` Paolo Bonzini
2020-03-18  3:27   ` [PATCH rebase] " Zhenyu Wang
2020-03-18 11:26     ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).