Changeset 38847 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Sep 23, 2011 1:19:23 PM (13 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDM.cpp
r38838 r38847 1057 1057 { 1058 1058 LogFlow(("PDMR3PowerOn: Notifying - device '%s'/%d\n", pDevIns->pReg->szName, pDevIns->iInstance)); 1059 PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED); 1059 1060 int rc = VINF_SUCCESS; pDevIns->pReg->pfnPowerOn(pDevIns); 1061 PDMCritSectLeave(pDevIns->pCritSectRoR3); 1060 1062 if (RT_FAILURE(rc)) 1061 1063 { … … 1343 1345 if (pDevIns->pReg->pfnReset) 1344 1346 { 1347 uint64_t cNsElapsed = RTTimeNanoTS(); 1348 PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED); 1349 1345 1350 if (!pDevIns->Internal.s.pfnAsyncNotify) 1346 1351 { … … 1360 1365 pdmR3NotifyAsyncAdd(pAsync, pDevIns->Internal.s.pDevR3->pReg->szName, pDevIns->iInstance); 1361 1366 } 1367 1368 PDMCritSectLeave(pDevIns->pCritSectRoR3); 1369 cNsElapsed = RTTimeNanoTS() - cNsElapsed; 1370 if (cNsElapsed >= PDMSUSPEND_WARN_AT_NS) 1371 LogRel(("PDMR3Reset: device '%s'/%d took %'llu ns to reset\n", 1372 pDevIns->pReg->szName, pDevIns->iInstance, cNsElapsed)); 1362 1373 } 1363 1374 } … … 1580 1591 { 1581 1592 uint64_t cNsElapsed = RTTimeNanoTS(); 1593 PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED); 1582 1594 1583 1595 if (!pDevIns->Internal.s.pfnAsyncNotify) … … 1599 1611 } 1600 1612 1613 PDMCritSectLeave(pDevIns->pCritSectRoR3); 1601 1614 cNsElapsed = RTTimeNanoTS() - cNsElapsed; 1602 1615 if (cNsElapsed >= PDMSUSPEND_WARN_AT_NS) … … 1756 1769 { 1757 1770 LogFlow(("PDMR3Resume: Notifying - device '%s'/%d\n", pDevIns->pReg->szName, pDevIns->iInstance)); 1771 PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED); 1758 1772 int rc = VINF_SUCCESS; pDevIns->pReg->pfnResume(pDevIns); 1773 PDMCritSectLeave(pDevIns->pCritSectRoR3); 1759 1774 if (RT_FAILURE(rc)) 1760 1775 { … … 1939 1954 { 1940 1955 uint64_t cNsElapsed = RTTimeNanoTS(); 1956 PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED); 1941 1957 1942 1958 if (!pDevIns->Internal.s.pfnAsyncNotify) … … 1958 1974 } 1959 1975 1976 PDMCritSectLeave(pDevIns->pCritSectRoR3); 1960 1977 cNsElapsed = RTTimeNanoTS() - cNsElapsed; 1961 1978 if (cNsElapsed >= PDMPOWEROFF_WARN_AT_NS) -
trunk/src/VBox/VMM/VMMR3/PDMDevice.cpp
r37812 r38847 420 420 if (pDevIns->pReg->pfnInitComplete) 421 421 { 422 PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED); 422 423 rc = pDevIns->pReg->pfnInitComplete(pDevIns); 424 PDMCritSectLeave(pDevIns->pCritSectRoR3); 423 425 if (RT_FAILURE(rc)) 424 426 { … … 796 798 if (!pLun->pTop) 797 799 { 800 PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED); 798 801 rc = pDevIns->pReg->pfnAttach(pDevIns, iLun, fFlags); 802 PDMCritSectLeave(pDevIns->pCritSectRoR3); 799 803 } 800 804 else … … 904 908 if (pDevIns->pReg->pfnAttach) 905 909 { 910 PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED); 906 911 rc = pDevIns->pReg->pfnAttach(pDevIns, iLun, fFlags); 907 912 if (RT_SUCCESS(rc) && ppBase) 908 913 *ppBase = pLun->pTop ? &pLun->pTop->IBase : NULL; 914 PDMCritSectLeave(pDevIns->pCritSectRoR3); 909 915 } 910 916 else -
trunk/src/VBox/VMM/VMMR3/PDMDriver.cpp
r37418 r38847 641 641 pLun->pTop = NULL; 642 642 if (!(fFlags & PDM_TACH_FLAGS_NO_CALLBACKS) && pLun->pDevIns->pReg->pfnDetach) 643 { 644 PDMCritSectEnter(pLun->pDevIns->pCritSectRoR3, VERR_IGNORED); 643 645 pLun->pDevIns->pReg->pfnDetach(pLun->pDevIns, pLun->iLun, fFlags); 646 PDMCritSectLeave(pLun->pDevIns->pCritSectRoR3); 647 } 644 648 } 645 649
Note:
See TracChangeset
for help on using the changeset viewer.