VirtualBox

Changeset 43354 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Sep 18, 2012 3:25:32 PM (12 years ago)
Author:
vboxsync
Message:

VMM/HWVMXR0: Don't create executable mappings for VMCS and friends.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r43307 r43354  
    223223    {
    224224        /* Allocate one page for the APIC physical page (serves for filtering accesses). */
    225         rc = RTR0MemObjAllocCont(&pVM->hwaccm.s.vmx.pMemObjAPIC, PAGE_SIZE, true /* executable R0 mapping */);
     225        rc = RTR0MemObjAllocCont(&pVM->hwaccm.s.vmx.pMemObjAPIC, PAGE_SIZE, false /* executable R0 mapping */);
    226226        AssertRC(rc);
    227227        if (RT_FAILURE(rc))
     
    241241#ifdef VBOX_WITH_CRASHDUMP_MAGIC
    242242    {
    243         rc = RTR0MemObjAllocCont(&pVM->hwaccm.s.vmx.pMemObjScratch, PAGE_SIZE, true /* executable R0 mapping */);
     243        rc = RTR0MemObjAllocCont(&pVM->hwaccm.s.vmx.pMemObjScratch, PAGE_SIZE, false /* executable R0 mapping */);
    244244        AssertRC(rc);
    245245        if (RT_FAILURE(rc))
     
    263263
    264264        /* Allocate one page for the VM control structure (VMCS). */
    265         rc = RTR0MemObjAllocCont(&pVCpu->hwaccm.s.vmx.hMemObjVMCS, PAGE_SIZE, true /* executable R0 mapping */);
     265        rc = RTR0MemObjAllocCont(&pVCpu->hwaccm.s.vmx.hMemObjVMCS, PAGE_SIZE, false /* executable R0 mapping */);
    266266        AssertRC(rc);
    267267        if (RT_FAILURE(rc))
     
    276276
    277277        /* Allocate one page for the virtual APIC page for TPR caching. */
    278         rc = RTR0MemObjAllocCont(&pVCpu->hwaccm.s.vmx.hMemObjVAPIC, PAGE_SIZE, true /* executable R0 mapping */);
     278        rc = RTR0MemObjAllocCont(&pVCpu->hwaccm.s.vmx.hMemObjVAPIC, PAGE_SIZE, false /* executable R0 mapping */);
    279279        AssertRC(rc);
    280280        if (RT_FAILURE(rc))
     
    288288        if (pVM->hwaccm.s.vmx.msr.vmx_proc_ctls.n.allowed1 & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_USE_MSR_BITMAPS)
    289289        {
    290             rc = RTR0MemObjAllocCont(&pVCpu->hwaccm.s.vmx.pMemObjMSRBitmap, PAGE_SIZE, true /* executable R0 mapping */);
     290            rc = RTR0MemObjAllocCont(&pVCpu->hwaccm.s.vmx.pMemObjMSRBitmap, PAGE_SIZE, false /* executable R0 mapping */);
    291291            AssertRC(rc);
    292292            if (RT_FAILURE(rc))
     
    300300#ifdef VBOX_WITH_AUTO_MSR_LOAD_RESTORE
    301301        /* Allocate one page for the guest MSR load area (for preloading guest MSRs during the world switch). */
    302         rc = RTR0MemObjAllocCont(&pVCpu->hwaccm.s.vmx.pMemObjGuestMSR, PAGE_SIZE, true /* executable R0 mapping */);
     302        rc = RTR0MemObjAllocCont(&pVCpu->hwaccm.s.vmx.pMemObjGuestMSR, PAGE_SIZE, false /* executable R0 mapping */);
    303303        AssertRC(rc);
    304304        if (RT_FAILURE(rc))
     
    311311
    312312        /* Allocate one page for the host MSR load area (for restoring host MSRs after the world switch back). */
    313         rc = RTR0MemObjAllocCont(&pVCpu->hwaccm.s.vmx.pMemObjHostMSR, PAGE_SIZE, true /* executable R0 mapping */);
     313        rc = RTR0MemObjAllocCont(&pVCpu->hwaccm.s.vmx.pMemObjHostMSR, PAGE_SIZE, false /* executable R0 mapping */);
    314314        AssertRC(rc);
    315315        if (RT_FAILURE(rc))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette