]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Fix conditions for guest IA32_XSS support
authorAaron Lewis <aaronlewis@google.com>
Mon, 21 Oct 2019 23:30:21 +0000 (16:30 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 13:43:21 +0000 (15:43 +0200)
commit25f3c6f0a1184308795f2f5a12cdd5f75dbfca21
tree2ccca4ab622f45613d5d8a058aa4216c903b7dc1
parent5a1b07e55df19fc1fa1db39ea5878fea5687b3d2
KVM: VMX: Fix conditions for guest IA32_XSS support

Volume 4 of the SDM says that IA32_XSS is supported
if CPUID(EAX=0DH,ECX=1):EAX.XSS[bit 3] is set, so only the
X86_FEATURE_XSAVES check is necessary (X86_FEATURE_XSAVES is the Linux
name for CPUID(EAX=0DH,ECX=1):EAX.XSS[bit 3]).

Fixes: a389a86ae8b91 ("KVM: VMX: check CPUID before allowing read/write of IA32_XSS")
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Change-Id: I9059b9f2e3595e4b09a4cdcf14b933b22ebad419
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c