Skip to content

Commit be6f33a

Browse files
jsmattsonjrgregkh
authored andcommitted
kvm: vmx: Do not disable intercepts for BNDCFGS
commit a8b6fda38f80e75afa3b125c9e7f2550b579454b upstream. The MSR permission bitmaps are shared by all VMs. However, some VMs may not be configured to support MPX, even when the host does. If the host supports VMX and the guest does not, we should intercept accesses to the BNDCFGS MSR, so that we can synthesize a #GP fault. Furthermore, if the host does not support MPX and the "ignore_msrs" kvm kernel parameter is set, then we should intercept accesses to the BNDCFGS MSR, so that we can skip over the rdmsr/wrmsr without raising a #GP fault. Fixes: da8999d ("KVM: x86: Intel MPX vmx and msr handle") Signed-off-by: Jim Mattson <jmattson@google.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c6f3576 commit be6f33a

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/x86/kvm/vmx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6252,7 +6252,6 @@ static __init int hardware_setup(void)
62526252
vmx_disable_intercept_for_msr(MSR_IA32_SYSENTER_CS, false);
62536253
vmx_disable_intercept_for_msr(MSR_IA32_SYSENTER_ESP, false);
62546254
vmx_disable_intercept_for_msr(MSR_IA32_SYSENTER_EIP, false);
6255-
vmx_disable_intercept_for_msr(MSR_IA32_BNDCFGS, true);
62566255

62576256
memcpy(vmx_msr_bitmap_legacy_x2apic,
62586257
vmx_msr_bitmap_legacy, PAGE_SIZE);

0 commit comments

Comments
 (0)