VirtualBox

Changeset 20726 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jun 19, 2009 1:50:56 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48840
Message:

IOM locking change

File:
1 edited

Legend:

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

    r20725 r20726  
    14711471         * Try register it with PGM and then insert it into the tree.
    14721472         */
     1473        iomLock(pVM);
     1474        iomR3FlushCache(pVM);
    14731475        rc = PGMR3PhysMMIORegister(pVM, GCPhysStart, cbRange,
    14741476                                   IOMR3MMIOHandler, pRange,
     
    14771479        if (RT_SUCCESS(rc))
    14781480        {
    1479             iomLock(pVM);
    14801481            if (RTAvlroGCPhysInsert(&pVM->iom.s.pTreesR3->MMIOTree, &pRange->Core))
    14811482            {
     
    14831484                return VINF_SUCCESS;
    14841485            }
     1486
     1487            /* bail out */
    14851488            iomUnlock(pVM);
    1486 
    1487             /* bail out */
    14881489            DBGFR3Info(pVM, "mmio", NULL, NULL);
    14891490            AssertMsgFailed(("This cannot happen!\n"));
    14901491            rc = VERR_INTERNAL_ERROR;
    14911492        }
     1493        else
     1494            iomUnlock(pVM);
     1495
    14921496        MMHyperFree(pVM, pRange);
    14931497    }
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