]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: vmx: Don't set hardware IA32_CSTAR MSR on VM-entry
authorJim Mattson <jmattson@google.com>
Wed, 5 Dec 2018 23:29:00 +0000 (15:29 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Dec 2018 16:59:48 +0000 (17:59 +0100)
commit22954213ae2cf8a6525420cc67c7e51b3627d824
tree71e45b51bdf98be5bfab1c36deef2f74ac1d4dce
parent7eddc6ae8b0297ebc9fb417edb2c356a83e726c3
kvm: vmx: Don't set hardware IA32_CSTAR MSR on VM-entry

SYSCALL raises #UD in compatibility mode on Intel CPUs, so it's
pointless to load the guest's IA32_CSTAR value into the hardware MSR.

IA32_CSTAR still provides 48 bits of storage on Intel CPUs that have
CPUID.80000001:EDX.LM[bit 29] set, so we cannot remove it from the
vmx_msr_index[] array.

Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c