Changeset 30050 in vbox
- Timestamp:
- Jun 7, 2010 7:11:15 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/em.h
r28800 r30050 214 214 VMMR3DECL(int) EMR3Interpret(PVM pVM); 215 215 216 VMMR3DECL(void) EMR3ReleaseOwnedLocks(PVM pVM);217 218 216 /** 219 217 * Command argument for EMR3RawSetMode(). -
trunk/include/VBox/iom.h
r28800 r30050 264 264 VMMR3DECL(int) IOMR3MMIODeregister(PVM pVM, PPDMDEVINS pDevIns, RTGCPHYS GCPhysStart, RTUINT cbRange); 265 265 266 VMMR3DECL(void) IOMR3ReleaseOwnedLocks(PVM pVM);267 266 VMMR3DECL(PPDMCRITSECT) IOMR3GetCritSect(PVM pVM); 268 267 -
trunk/include/VBox/mm.h
r28800 r30050 253 253 254 254 VMMR3DECL(int) MMR3HCPhys2HCVirt(PVM pVM, RTHCPHYS HCPhys, void **ppv); 255 VMMR3DECL(void) MMR3ReleaseOwnedLocks(PVM pVM);256 255 257 256 /** @defgroup grp_mm_r3_hyper Hypervisor Memory Manager (HC R3 Portion) -
trunk/include/VBox/pdmapi.h
r29521 r30050 126 126 VMMR3DECL(int) PDMR3VMMDevHeapFree(PVM pVM, RTR3PTR pv); 127 127 VMMR3DECL(int) PDMR3UnregisterVMMDevHeap(PVM pVM, RTGCPHYS GCPhys); 128 129 VMMR3DECL(void) PDMR3ReleaseOwnedLocks(PVM pVM);130 128 /** @} */ 131 129 -
trunk/include/VBox/pgm.h
r30040 r30050 552 552 VMMR3DECL(int) PGMR3PhysAllocateLargeHandyPage(PVM pVM, RTGCPHYS GCPhys); 553 553 554 VMMR3DECL(void) PGMR3ReleaseOwnedLocks(PVM pVM);555 556 554 VMMR3DECL(int) PGMR3CheckIntegrity(PVM pVM); 557 555 -
trunk/src/VBox/VMM/EM.cpp
r29329 r30050 1633 1633 } 1634 1634 1635 /**1636 * Release the IOM lock if owned by the current VCPU1637 *1638 * @param pVM The VM to operate on.1639 */1640 VMMR3DECL(void) EMR3ReleaseOwnedLocks(PVM pVM)1641 {1642 while (PDMCritSectIsOwner(&pVM->em.s.CritSectREM))1643 PDMCritSectLeave(&pVM->em.s.CritSectREM);1644 }1645 1646 1635 1647 1636 /** -
trunk/src/VBox/VMM/IOM.cpp
r29436 r30050 1700 1700 1701 1701 /** 1702 * Release the IOM lock if owned by the current VCPU1703 *1704 * @param pVM The VM to operate on.1705 */1706 VMMR3DECL(void) IOMR3ReleaseOwnedLocks(PVM pVM)1707 {1708 while (PDMCritSectIsOwner(&pVM->iom.s.EmtLock))1709 PDMCritSectLeave(&pVM->iom.s.EmtLock);1710 }1711 1712 1713 /**1714 1702 * For TM only! 1715 1703 * -
trunk/src/VBox/VMM/MMHyper.cpp
r28800 r30050 1224 1224 } 1225 1225 1226 /**1227 * Release the MM hypervisor heap lock if owned by the current VCPU1228 *1229 * @param pVM The VM to operate on.1230 */1231 VMMR3DECL(void) MMR3ReleaseOwnedLocks(PVM pVM)1232 {1233 PMMHYPERHEAP pHeap = pVM->mm.s.CTX_SUFF(pHyperHeap);1234 1235 while (pHeap && PDMCritSectIsOwner(&pHeap->Lock))1236 PDMCritSectLeave(&pHeap->Lock);1237 }1238 1239 1226 1240 1227 /** -
trunk/src/VBox/VMM/PDM.cpp
r28801 r30050 2118 2118 } 2119 2119 2120 /**2121 * Release the PDM lock if owned by the current VCPU2122 *2123 * @param pVM The VM to operate on.2124 */2125 VMMR3DECL(void) PDMR3ReleaseOwnedLocks(PVM pVM)2126 {2127 while (PDMCritSectIsOwner(&pVM->pdm.s.CritSect))2128 PDMCritSectLeave(&pVM->pdm.s.CritSect);2129 } -
trunk/src/VBox/VMM/PGM.cpp
r29646 r30050 3350 3350 } 3351 3351 3352 /**3353 * Release the pgm lock if owned by the current VCPU3354 *3355 * @param pVM The VM to operate on.3356 */3357 VMMR3DECL(void) PGMR3ReleaseOwnedLocks(PVM pVM)3358 {3359 while (PDMCritSectIsOwner(&pVM->pgm.s.CritSect))3360 PDMCritSectLeave(&pVM->pgm.s.CritSect);3361 }3362 3352 3363 3353 /** -
trunk/src/VBox/VMM/VMMGuruMeditation.cpp
r28800 r30050 5 5 6 6 /* 7 * Copyright (C) 2006-20 07Oracle Corporation7 * Copyright (C) 2006-2010 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 210 210 211 211 /* Release owned locks to make sure other VCPUs can continue in case they were waiting for one. */ 212 #if 1213 212 PDMR3CritSectLeaveAll(pVM); 214 #else215 MMR3ReleaseOwnedLocks(pVM);216 PGMR3ReleaseOwnedLocks(pVM);217 PDMR3ReleaseOwnedLocks(pVM);218 IOMR3ReleaseOwnedLocks(pVM);219 EMR3ReleaseOwnedLocks(pVM);220 #endif221 213 222 214 /*
Note:
See TracChangeset
for help on using the changeset viewer.