VirtualBox

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


Ignore:
Timestamp:
Nov 19, 2008 7:17:18 PM (16 years ago)
Author:
vboxsync
Message:

#1865: ring-0 mapping cache, code in progress.

File:
1 edited

Legend:

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

    r14374 r14376  
    636636    /* close the set */
    637637    uint32_t    i = pVCpu->pgm.s.AutoSet.cEntries;
    638     AssertMsg(i <= RT_ELEMENTS(pVCpu->pgm.s.AutoSet.aEntries), ("%u\n", i));
     638    AssertMsg(i <= RT_ELEMENTS(pVCpu->pgm.s.AutoSet.aEntries), ("%#x (%u)\n", i, i));
    639639    pVCpu->pgm.s.AutoSet.cEntries = PGMMAPSET_CLOSED;
    640640
     
    680680    PPGMMAPSET  pSet = &pVCpu->pgm.s.AutoSet;
    681681    uint32_t    i = pVCpu->pgm.s.AutoSet.cEntries;
    682     AssertMsg(i <= RT_ELEMENTS(pVCpu->pgm.s.AutoSet.aEntries), ("%u\n", i));
     682    AssertMsg(i <= RT_ELEMENTS(pVCpu->pgm.s.AutoSet.aEntries), ("%#x (%u)\n", i, i));
    683683    if (i != 0 && RT_LIKELY(i <= RT_ELEMENTS(pVCpu->pgm.s.AutoSet.aEntries)))
    684684    {
     
    744744     * Validate state.
    745745     */
     746    AssertMsgReturn(pVM->pgm.s.pvR0DynMapUsed == g_pPGMR0DynMap,
     747                    ("%p != %p\n", pVM->pgm.s.pvR0DynMapUsed, g_pPGMR0DynMap),
     748                    VERR_ACCESS_DENIED);
    746749    AssertMsg(!(HCPhys & PAGE_OFFSET_MASK), ("HCPhys=%RHp\n", HCPhys));
    747750    PVMCPU          pVCpu   = VMMGetCpu(pVM);
     
    749752    AssertPtrReturn(pVCpu, VERR_INTERNAL_ERROR);
    750753    AssertMsgReturn(pSet->cEntries > RT_ELEMENTS(pSet->aEntries),
    751                     ("%#x\n", pSet->cEntries), VERR_WRONG_ORDER);
     754                    ("%#x (%u)\n", pSet->cEntries, pSet->cEntries), VERR_WRONG_ORDER);
    752755
    753756    /*
     
    809812}
    810813
    811 
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