]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Use wrmsr for switching between guest and host IA32_XSS on AMD
authorAaron Lewis <aaronlewis@google.com>
Mon, 21 Oct 2019 23:30:23 +0000 (16:30 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 13:45:59 +0000 (15:45 +0200)
commitb7e4f1ed8e4a05c3de2c2d765aedb3ba789b769f
tree5321085e5ad08feffd3a2500fa5231606a55cb5d
parentdf8b0ce9277929520eadb19bd27ca48e6905083f
KVM: SVM: Use wrmsr for switching between guest and host IA32_XSS on AMD

When the guest can execute the XSAVES/XRSTORS instructions, set the
hardware IA32_XSS MSR to guest/host values on VM-entry/VM-exit.

Note that vcpu->arch.ia32_xss is currently guaranteed to be 0 on AMD,
since there is no way to change it.

Suggested-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Change-Id: Id51a782462086e6d7a3ab621838e200f1c005afd
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c