kvm: svm: Update svm_xsaves_supported
authorAaron Lewis <aaronlewis@google.com>
Mon, 21 Oct 2019 23:30:27 +0000 (16:30 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 13:47:30 +0000 (15:47 +0200)
commit52297436199dde85be557ee6bc779f5b96082f74
tree0191e6e623b44ac27b94081c922ebbc35f5ea5d6
parent864e2ab2b46db1ac266c46a7c9cefe6cc893029d
kvm: svm: Update svm_xsaves_supported

AMD CPUs now support XSAVES in a limited fashion (they require IA32_XSS
to be zero).

AMD has no equivalent of Intel's "Enable XSAVES/XRSTORS" VM-execution
control. Instead, XSAVES is always available to the guest when supported
on the host.

Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Change-Id: I40dc2c682eb0d38c2208d95d5eb7bbb6c47f6317
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c