VirtualBox

Changeset 23460 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 1, 2009 2:02:51 AM (15 years ago)
Author:
vboxsync
Message:

PGM: Page lock counters. (disabled)

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r22764 r23460  
    364364VMMDECL(int)        PGMPhysGCPtr2CCPtrReadOnly(PVMCPU pVCpu, RTGCPTR GCPtr, void const **ppv, PPGMPAGEMAPLOCK pLock);
    365365VMMDECL(void)       PGMPhysReleasePageMappingLock(PVM pVM, PPGMPAGEMAPLOCK pLock);
    366 
    367 /**
    368  * Checks if the lock structure is valid
    369  *
    370  * @param   pVM         The VM handle.
    371  * @param   pLock       The lock structure initialized by the mapping function.
    372  */
    373 DECLINLINE(bool)    PGMPhysIsPageMappingLockValid(PVM pVM, PPGMPAGEMAPLOCK pLock)
    374 {
    375     /** @todo -> complete/change this  */
    376 #if defined(IN_RC) || defined(VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0)
    377     return !!(pLock->u32Dummy);
    378 #else
    379     return !!(pLock->pvPage);
    380 #endif
    381 }
    382 
    383366VMMDECL(int)        PGMPhysGCPhys2R3Ptr(PVM pVM, RTGCPHYS GCPhys, RTUINT cbRange, PRTR3PTR pR3Ptr);
    384367#ifdef VBOX_STRICT
  • trunk/include/VBox/types.h

    r23146 r23460  
    770770    uint32_t    u32Dummy;
    771771#else
    772     /** Pointer to the PGMPAGE. */
    773     void       *pvPage;
     772    /** Pointer to the PGMPAGE and lock type.
     773     * bit-0 abuse: set=write, clear=read. */
     774    uintptr_t   uPageAndType;
     775/** Read lock type value. */
     776# define PGMPAGEMAPLOCK_TYPE_READ    ((uintptr_t)0)
     777/** Write lock type value. */
     778# define PGMPAGEMAPLOCK_TYPE_WRITE   ((uintptr_t)1)
     779/** Lock type mask. */
     780# define PGMPAGEMAPLOCK_TYPE_MASK    ((uintptr_t)1)
    774781    /** Pointer to the PGMCHUNKR3MAP. */
    775782    void       *pvMap;
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