VirtualBox

Changeset 14346 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 19, 2008 11:25:35 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39558
Message:

Implemented check for monitored page accesses, fixing TSS out of sync problem with VA in TLB. Enabled VA in TLB by default in new REM>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMHandler.cpp

    r13936 r14346  
    433433
    434434/**
     435 * Check if particular guest's VA is being monitored.
     436 *
     437 * @returns true or false
     438 * @param   pVM             VM handle.
     439 * @param   GCPtr           Virtual address.
     440 */
     441VMMDECL(bool) PGMHandlerIsAddressMonitored(PVM pVM, RTGCPTR GCPtr)
     442{
     443    pgmLock(pVM);
     444    PPGMVIRTHANDLER pCur = (PPGMVIRTHANDLER)RTAvlroGCPtrGet(&pVM->pgm.s.pTreesR3->VirtHandlers, GCPtr);
     445    pgmUnlock(pVM);
     446
     447    return pCur != 0;
     448}
     449
     450
     451/**
    435452 * Deregister an access handler for a virtual range.
    436453 *
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