VirtualBox

Changeset 8217 in vbox for trunk/src/VBox/VMM/PATM


Ignore:
Timestamp:
Apr 21, 2008 11:33:22 AM (17 years ago)
Author:
vboxsync
Message:

Added CSAMR3UnmonitorPage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/CSAM.cpp

    r8155 r8217  
    18181818
    18191819/**
     1820 * Unmonitors a code page
     1821 *
     1822 * @returns VBox status code
     1823 * @param   pVM         The VM to operate on.
     1824 * @param   pPageAddrGC The page to monitor
     1825 * @param   enmTag      Monitor tag
     1826 */
     1827CSAMR3DECL(int) CSAMR3UnmonitorPage(PVM pVM, RTGCPTR pPageAddrGC, CSAMTAG enmTag)
     1828{
     1829    pPageAddrGC &= PAGE_BASE_GC_MASK;
     1830
     1831    Log(("CSAMR3UnmonitorPage %VGv %d\n", pPageAddrGC, enmTag));
     1832
     1833    Assert(enmTag == CSAM_TAG_REM);
     1834
     1835#ifdef VBOX_STRICT
     1836    PCSAMPAGEREC pPageRec;
     1837
     1838    pPageRec = (PCSAMPAGEREC)RTAvlPVGet(&pVM->csam.s.pPageTree, (AVLPVKEY)pPageAddrGC);
     1839    Assert(pPageRec && pPageRec->page.enmTag == enmTag);
     1840#endif
     1841    return CSAMR3RemovePage(pVM, pPageAddrGC);
     1842}
     1843
     1844/**
    18201845 * Removes a page record from our lookup tree
    18211846 *
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