diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-05 18:11:56 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-03-16 19:58:45 +0300 |
commit | 408e9a318f57ba8be82ba01e98cc271b97392187 (patch) | |
tree | 1730689c6284511cbbe6e5f8545eb3f46114b5c6 /arch/x86/kvm/x86.h | |
parent | 257038745cae1fdaa3948013a22eba3b1d610174 (diff) | |
download | linux-408e9a318f57ba8be82ba01e98cc271b97392187.tar.xz |
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.h | 1 |
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) { |