VirtualBox

Changeset 20764 in vbox


Ignore:
Timestamp:
Jun 22, 2009 11:13:45 AM (15 years ago)
Author:
vboxsync
Message:

More checks

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMInternal.h

    r20567 r20764  
    29772977int             pgmR0DynMapHCPageCommon(PVM pVM, PPGMMAPSET pSet, RTHCPHYS HCPhys, void **ppv);
    29782978#endif
    2979 int             pgmPoolAllocEx(PVM pVM, RTGCPHYS GCPhys, PGMPOOLKIND enmKind, PGMPOOLACCESS enmAccess, uint16_t iUser, uint32_t iUserTable, PPPGMPOOLPAGE ppPage);
    2980 
    2981 DECLINLINE(int) pgmPoolAlloc(PVM pVM, RTGCPHYS GCPhys, PGMPOOLKIND enmKind, uint16_t iUser, uint32_t iUserTable, PPPGMPOOLPAGE ppPage)
    2982 {
    2983     return pgmPoolAllocEx(pVM, GCPhys, enmKind, PGMPOOLACCESS_DONTCARE, iUser, iUserTable, ppPage);
     2979int             pgmPoolAllocEx(PVM pVM, RTGCPHYS GCPhys, PGMPOOLKIND enmKind, PGMPOOLACCESS enmAccess, uint16_t iUser, uint32_t iUserTable, PPPGMPOOLPAGE ppPage, bool fLockPage = false);
     2980
     2981DECLINLINE(int) pgmPoolAlloc(PVM pVM, RTGCPHYS GCPhys, PGMPOOLKIND enmKind, uint16_t iUser, uint32_t iUserTable, PPPGMPOOLPAGE ppPage, bool fLockPage = false)
     2982{
     2983    return pgmPoolAllocEx(pVM, GCPhys, enmKind, PGMPOOLACCESS_DONTCARE, iUser, iUserTable, ppPage, fLockPage);
    29842984}
    29852985
     
    44734473DECLINLINE(void) pgmPoolLockPage(PPGMPOOL pPool, PPGMPOOLPAGE pPage)
    44744474{
     4475    Assert(PGMIsLockOwner(pPool->CTX_SUFF(pVM)));
    44754476    ASMAtomicIncU32(&pPage->cLocked);
    44764477}
     
    44854486DECLINLINE(void) pgmPoolUnlockPage(PPGMPOOL pPool, PPGMPOOLPAGE pPage)
    44864487{
     4488    Assert(PGMIsLockOwner(pPool->CTX_SUFF(pVM)));
    44874489    Assert(pPage->cLocked);
    44884490    ASMAtomicDecU32(&pPage->cLocked);
  • trunk/src/VBox/VMM/PGMPool.cpp

    r20058 r20764  
    529529    }
    530530
     531    Assert(pPage->enmKind != PGMPOOLKIND_FREE);
     532
    531533    if (!pVCpu) /** @todo This shouldn't happen any longer, all access handlers will be called on an EMT. All ring-3 handlers, except MMIO, already own the PGM lock. @bugref{3170} */
    532534    {
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r20763 r20764  
    11201120    }
    11211121
     1122    Assert(pPage->enmKind != PGMPOOLKIND_FREE);
     1123
    11221124    /*
    11231125     * We should ALWAYS have the list head as user parameter. This
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