kvm: x86: Move IA32_XSS to kvm_{get,set}_msr_common
authorAaron Lewis <aaronlewis@google.com>
Mon, 21 Oct 2019 23:30:26 +0000 (16:30 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 13:47:12 +0000 (15:47 +0200)
commit864e2ab2b46db1ac266c46a7c9cefe6cc893029d
treeee3f68d5bfe20a1ed22f6927d8100aeab44c8562
parent139a12cfe1a040fd881338a7cc042bd37159ea9a
kvm: x86: Move IA32_XSS to kvm_{get,set}_msr_common

Hoist support for RDMSR/WRMSR of IA32_XSS from vmx into common code so
that it can be used for svm as well.

Right now, kvm only allows the guest IA32_XSS to be zero,
so the guest's usage of XSAVES will be exactly the same as XSAVEC.

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