summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-03-05 16:11:56 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2020-03-16 17:58:45 +0100
commit408e9a318f57ba8be82ba01e98cc271b97392187 (patch)
tree1730689c6284511cbbe6e5f8545eb3f46114b5c6 /arch/x86/kvm/x86.h
parentKVM: x86: Move nSVM CPUID 0x8000000A handling into common x86 code (diff)
downloadlinux-408e9a318f57ba8be82ba01e98cc271b97392187.tar.xz
linux-408e9a318f57ba8be82ba01e98cc271b97392187.zip
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>
Diffstat (limited to 'arch/x86/kvm/x86.h')
-rw-r--r--arch/x86/kvm/x86.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h
index 4d890bf827e8..c1954e216b41 100644
--- a/arch/x86/kvm/x86.h
+++ b/arch/x86/kvm/x86.h
@@ -272,6 +272,7 @@ enum exit_fastpath_completion handle_fastpath_set_msr_irqoff(struct kvm_vcpu *vc
extern u64 host_xcr0;
extern u64 supported_xcr0;
+extern u64 supported_xss;
static inline bool kvm_mpx_supported(void)
{