KVM: CPUID: add support for supervisor states
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Mar 2020 15:11:56 +0000 (16:11 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:45 +0000 (17:58 +0100)
commit408e9a318f57ba8be82ba01e98cc271b97392187
tree1730689c6284511cbbe6e5f8545eb3f46114b5c6
parent257038745cae1fdaa3948013a22eba3b1d610174
KVM: CPUID: add support for supervisor states

Current CPUID 0xd enumeration code does not support supervisor
states, because KVM only supports setting IA32_XSS to zero.
Change it instead to use a new variable supported_xss, to be
set from the hardware_setup callback which is in charge of CPU
capabilities.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c
arch/x86/kvm/x86.h