VirtualBox

Changeset 13415 in vbox


Ignore:
Timestamp:
Oct 20, 2008 11:22:47 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38171
Message:

VMM: a couple of comments.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r13373 r13415  
    14221422         */
    14231423        rc = PGMR3PhysMMIORegister(pVM, GCPhysStart, cbRange,
    1424                                     IOMR3MMIOHandler, pRange,
    1425                                     pVM->iom.s.pfnMMIOHandlerR0, MMHyperR3ToR0(pVM, pRange),
    1426                                     pVM->iom.s.pfnMMIOHandlerRC, MMHyperR3ToRC(pVM, pRange), pszDesc);
    1427 
     1424                                   IOMR3MMIOHandler, pRange,
     1425                                   pVM->iom.s.pfnMMIOHandlerR0, MMHyperR3ToR0(pVM, pRange),
     1426                                   pVM->iom.s.pfnMMIOHandlerRC, MMHyperR3ToRC(pVM, pRange), pszDesc);
    14281427        if (RT_SUCCESS(rc))
    14291428        {
     
    16051604    while (GCPhys <= GCPhysLast && GCPhys >= GCPhysStart)
    16061605    {
    1607         int           rc;
    16081606        PIOMMMIORANGE pRange = (PIOMMMIORANGE)RTAvlroGCPhysRemove(&pVM->iom.s.pTreesR3->MMIOTree, GCPhys);
    16091607        Assert(pRange);
     
    16111609
    16121610        /* remove it from PGM */
    1613         rc = PGMR3PhysMMIODeregister(pVM, GCPhys, pRange->cb);
     1611        int rc = PGMR3PhysMMIODeregister(pVM, GCPhys, pRange->cb);
     1612        AssertRC(rc);
    16141613
    16151614        /* advance and free. */
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r13393 r13415  
    899899}
    900900
     901
    901902/**
    902903 * Temporarily turns off the access monitoring of a page within an MMIO
     
    932933
    933934            AssertReturn(pCur->enmType == PGMPHYSHANDLERTYPE_MMIO, VERR_ACCESS_DENIED);
     935            /** @todo r=bird: This totally breaks the new PGMPAGE management. Will probably
     936             *        have to require that the current page is the zero page... Require
     937             *        GCPhysPageRemap to be a MMIO2 page might help matters because those
     938             *        pages aren't managed dynamically (at least not yet).
     939             *        VBOX_WITH_NEW_PHYS_CODE TODO!  */
    934940
    935941            PPGMPAGE pPageRemap;
  • trunk/src/VBox/VMM/VMMAll/PGMAllShw.h

    r13393 r13415  
    359359            {
    360360                pPT->a[iPTE].u = (pPT->a[iPTE].u & (fMask | SHW_PTE_PG_MASK)) | (fFlags & ~SHW_PTE_PG_MASK);
     361/** @todo r=bird: I think this may break assumptions in page pool GCPhys
     362 * tracking, and I seems to recall putting it here to prevent API users from
     363 * making anything !P. The assertion is kind of useless now, as it
     364 * won't hit anything any longer... */
    361365                Assert(pPT->a[iPTE].n.u1Present || !(fMask & X86_PTE_P));
    362366# if PGM_SHW_TYPE == PGM_TYPE_EPT
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