VirtualBox

Changeset 15347 in vbox for trunk/src


Ignore:
Timestamp:
Dec 12, 2008 1:59:23 AM (16 years ago)
Author:
vboxsync
Message:

PGMR0DynMap: Fixed testcase (missing migration).

File:
1 edited

Legend:

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

    r15346 r15347  
    16901690 * @param   HCPhys      The physical address of the page.
    16911691 * @param   ppv         Where to store the address of the mapping on success.
     1692 *
     1693 * @remarks This is a very hot path.
    16921694 */
    16931695int pgmR0DynMapHCPageCommon(PVM pVM, PPGMMAPSET pSet, RTHCPHYS HCPhys, void **ppv)
     
    18041806
    18051807
    1806 /* documented elsewhere - a bit of a mess.
    1807    This is a VERY hot path. */
     1808/* documented elsewhere - a bit of a mess. */
    18081809VMMDECL(int) PGMDynMapHCPage(PVM pVM, RTHCPHYS HCPhys, void **ppv)
    18091810{
     
    19091910        LogRel(("Test #2\n"));
    19101911        ASMIntDisable();
     1912        PGMDynMapMigrateAutoSet(&pVM->aCpus[0]);
    19111913        for (i = 0 ; i < UINT16_MAX*2 - 1 && RT_SUCCESS(rc) && pv2 == pv; i++)
    19121914        {
     
    19461948            LogRel(("Test #3\n"));
    19471949            ASMIntDisable();
     1950            PGMDynMapMigrateAutoSet(&pVM->aCpus[0]);
    19481951            pv2 = NULL;
    19491952            for (i = 0 ; i < RT_ELEMENTS(pSet->aEntries) - 5 && RT_SUCCESS(rc) && pv2 != pv; i++)
     
    19731976                LogRel(("Test #4\n"));
    19741977                ASMIntDisable();
     1978                PGMDynMapMigrateAutoSet(&pVM->aCpus[0]);
    19751979                for (i = 0 ; i < RT_ELEMENTS(pSet->aEntries) + 2; i++)
    19761980                {
     
    20172021        LogRel(("Test #5\n"));
    20182022        ASMIntDisable();
     2023        PGMDynMapMigrateAutoSet(&pVM->aCpus[0]);
    20192024        RTHCPHYS  HCPhysPT = RTR0MemObjGetPagePhysAddr(pThis->pSegHead->ahMemObjPTs[0], 0);
    20202025        rc  = PGMDynMapHCPage(pVM, HCPhysPT, &pv);
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