VirtualBox

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


Ignore:
Timestamp:
Nov 26, 2008 6:09:32 PM (16 years ago)
Author:
vboxsync
Message:

HWACCMR0: Added PGMDynMap*AutoSet calls upon entry and exit (darwin only).

File:
1 edited

Legend:

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

    r14606 r14658  
    919919        AssertMsg(pVCpu->hwaccm.s.idEnteredCpu == NIL_RTCPUID, ("%d", (int)pVCpu->hwaccm.s.idEnteredCpu));
    920920        pVCpu->hwaccm.s.idEnteredCpu = idCpu;
     921
     922#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
     923        PGMDynMapMigrateAutoSet(pVCpu);
     924#endif
    921925    }
    922926    return rc;
     
    976980    CPUMCTX *pCtx;
    977981    RTCPUID  idCpu = RTMpCpuId(); NOREF(idCpu);
     982    int      rc;
    978983#ifdef VBOX_STRICT
    979984    PHWACCM_CPUINFO pCpu = &HWACCMR0Globals.aCpuInfo[idCpu];
     
    985990    Assert(ASMAtomicReadBool(&pCpu->fInUse) == true);
    986991
     992#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
     993    PGMDynMapStartAutoSet(pVCpu);
     994#endif
     995
    987996    pCtx = CPUMQueryGuestCtxPtrEx(pVM, pVCpu);
    988997
    989     return HWACCMR0Globals.pfnRunGuestCode(pVM, pVCpu, pCtx);
     998    rc = HWACCMR0Globals.pfnRunGuestCode(pVM, pVCpu, pCtx);
     999
     1000#ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
     1001    PGMDynMapReleaseAutoSet(pVCpu);
     1002#endif
     1003    return rc;
    9901004}
    9911005
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