KVM: x86: Move IA32_XSS-swapping on VM-entry/VM-exit to common x86 code
authorAaron Lewis <aaronlewis@google.com>
Mon, 21 Oct 2019 23:30:25 +0000 (16:30 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 13:46:53 +0000 (15:46 +0200)
commit139a12cfe1a040fd881338a7cc042bd37159ea9a
tree700bbbb3a65db5c7c66031fb20548c4856ad1cb0
parent9753d68865c5662eee94eb8808b5ad5eb766f5ea
KVM: x86: Move IA32_XSS-swapping on VM-entry/VM-exit to common x86 code

Hoist the vendor-specific code related to loading the hardware IA32_XSS
MSR with guest/host values on VM-entry/VM-exit to common x86 code.

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