Skip to content

Commit

Permalink
kvm: svm: Update svm_xsaves_supported
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aaron Lewis authored and Paolo Bonzini committed Oct 22, 2019
1 parent 864e2ab commit 5229743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -5973,7 +5973,7 @@ static bool svm_mpx_supported(void)

static bool svm_xsaves_supported(void)
{
return false;
return boot_cpu_has(X86_FEATURE_XSAVES);
}

static bool svm_umip_emulated(void)
Expand Down

0 comments on commit 5229743

Please sign in to comment.