VirtualBox

Changeset 20730 in vbox for trunk/src/VBox/VMM/PGMPhys.cpp


Ignore:
Timestamp:
Jun 19, 2009 3:10:42 PM (15 years ago)
Author:
vboxsync
Message:

More locking

File:
1 edited

Legend:

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

    r20709 r20730  
    922922    VM_ASSERT_EMT_RETURN(pVM, VERR_VM_THREAD_NOT_EMT);
    923923
     924    pgmLock(pVM);
     925
    924926    /*
    925927     * Find range location and check for conflicts.
     
    948950    int rc = MMR3IncreaseBaseReservation(pVM, cPages);
    949951    if (RT_FAILURE(rc))
     952    {
     953        pgmUnlock(pVM);
    950954        return rc;
     955    }
    951956
    952957    if (    GCPhys >= _4G
     
    10131018        pgmR3PhysInitAndLinkRamRange(pVM, pNew, GCPhys, GCPhysLast, NIL_RTRCPTR, NIL_RTR0PTR, pszDesc, pPrev);
    10141019    }
     1020    pgmUnlock(pVM);
    10151021
    10161022    /*
     
    13071313    else
    13081314    {
     1315        pgmLock(pVM);
     1316
    13091317        /*
    13101318         * No RAM range, insert an ad-hoc one.
     
    13421350        /* link it */
    13431351        pgmR3PhysLinkRamRange(pVM, pNew, pRamPrev);
     1352
     1353        pgmUnlock(pVM);
    13441354    }
    13451355
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