diff options
author | Aaron Lewis <aaronlewis@google.com> | 2019-10-21 16:30:21 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-10-22 15:43:21 +0200 |
commit | c034f2aa8622e1e436563eb34c0f78ba8aa32329 (patch) | |
tree | 2ccca4ab622f45613d5d8a058aa4216c903b7dc1 /crypto/cipher.c | |
parent | 7204160eb7809345d10c983d9d1dfbd98060a56d (diff) | |
download | linux-c034f2aa8622e1e436563eb34c0f78ba8aa32329.tar.bz2 |
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: 4d763b168e9c5 ("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>
Diffstat (limited to 'crypto/cipher.c')
0 files changed, 0 insertions, 0 deletions