VirtualBox

Changeset 19807 in vbox


Ignore:
Timestamp:
May 19, 2009 9:01:05 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47453
Message:

Some more locking updates

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/iom.h

    r19682 r19807  
    216216VMMDECL(int)  IOMMMIOMapMMIO2Page(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS GCPhysRemapped, uint64_t fPageFlags);
    217217VMMDECL(int)  IOMMMIOResetRegion(PVM pVM, RTGCPHYS GCPhys);
     218VMMDECL(bool) IOMIsLockOwner(PVM pVM);
    218219
    219220#ifdef IN_RC
  • trunk/src/VBox/VMM/PGMPhys.cpp

    r19300 r19807  
    11011101int pgmR3PhysRamReset(PVM pVM)
    11021102{
     1103    Assert(PGMIsLockOwner(pVM));
    11031104    /*
    11041105     * We batch up pages before freeing them.
  • trunk/src/VBox/VMM/VMMAll/IOMAll.cpp

    r19487 r19807  
    8181}
    8282
     83
     84/**
     85 * Check if this VCPU currently owns the IOM lock.
     86 *
     87 * @returns bool owner/not owner
     88 * @param   pVM         The VM to operate on.
     89 */
     90VMMDECL(bool) IOMIsLockOwner(PVM pVM)
     91{
     92    return PDMCritSectIsOwner(&pVM->iom.s.EmtLock);
     93}
     94
    8395/**
    8496 * Returns the contents of register or immediate data of instruction's parameter.
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r19806 r19807  
    977977VMMDECL(int)  PGMHandlerPhysicalPageAlias(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS GCPhysPage, RTGCPHYS GCPhysPageRemap)
    978978{
     979///    Assert(!IOMIsLockOwner(pVM)); /* We mustn't own any other locks when calling this */
     980
    979981    /*
    980982     * Lookup and validate the range.
Note: See TracChangeset for help on using the changeset viewer.

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