lkml.org 
[lkml]   [2017]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.16 018/192] kvm: vmx: Do not disable intercepts for BNDCFGS
    3.16.49-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Jim Mattson <jmattson@google.com>

    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: da8999d31818fdc8 ("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: Ben Hutchings <ben@decadent.org.uk>
    ---
    arch/x86/kvm/vmx.c | 1 -
    1 file changed, 1 deletion(-)

    --- a/arch/x86/kvm/vmx.c
    +++ b/arch/x86/kvm/vmx.c
    @@ -9048,7 +9048,6 @@ static int __init vmx_init(void)
    vmx_disable_intercept_for_msr(MSR_IA32_SYSENTER_CS, false);
    vmx_disable_intercept_for_msr(MSR_IA32_SYSENTER_ESP, false);
    vmx_disable_intercept_for_msr(MSR_IA32_SYSENTER_EIP, false);
    - vmx_disable_intercept_for_msr(MSR_IA32_BNDCFGS, true);

    memcpy(vmx_msr_bitmap_legacy_x2apic,
    vmx_msr_bitmap_legacy, PAGE_SIZE);
    \
     
     \ /
      Last update: 2017-10-09 14:45    [W:5.197 / U:0.896 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site