VirtualBox

Changeset 37354 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Jun 7, 2011 3:05:32 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72121
Message:

PGM: Fixed locking issues in PGMR3PhysMMIORegister and PGMR3PhysMMIODeregister. Also addressed a harmless on in PGMR3PhysRomRegister (only used at init time, so no races). Fortified the code with assertions more lock assertion, replacing the incorrect PGMIsLocked() checks (we only care if the current thread is the lock owner). Cleaned up some ReturnStmt macros and adding more of them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pgm.h

    r36891 r37354  
    286286
    287287
    288 VMMDECL(bool)           PGMIsLocked(PVM pVM);
    289288VMMDECL(bool)           PGMIsLockOwner(PVM pVM);
    290289
     
    367366VMMDECL(bool)       PGMPhysIsGCPhysNormal(PVM pVM, RTGCPHYS GCPhys);
    368367VMMDECL(int)        PGMPhysGCPtr2GCPhys(PVMCPU pVCpu, RTGCPTR GCPtr, PRTGCPHYS pGCPhys);
    369 VMMDECL(void)       PGMPhysInvalidatePageMapTLB(PVM pVM);
    370 VMMDECL(void)       PGMPhysInvalidatePageMapTLBEntry(PVM pVM, RTGCPHYS GCPhys);
    371368VMMDECL(void)       PGMPhysReleasePageMappingLock(PVM pVM, PPGMPAGEMAPLOCK pLock);
    372369VMMDECL(int)        PGMPhysRead(PVM pVM, RTGCPHYS GCPhys, void *pvBuf, size_t cbRead);
     
    396393#endif
    397394
    398 VMMDECL(void) PGMSetLargePageUsage(PVM pVM, bool fUseLargePages);
     395VMMDECL(int)        PGMSetLargePageUsage(PVM pVM, bool fUseLargePages);
    399396
    400397/**
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