Changeset 100779 in vbox
- Timestamp:
- Aug 2, 2023 1:39:17 PM (16 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmdrv.h
r99739 r100779 1827 1827 1828 1828 /** 1829 * Get the status of an saved state operation. 1830 * 1831 * This can sometimes be useful in FNSSMDRVLOADDONE implementations to determine 1832 * whether the load succeeded or not. 1833 * 1834 * @returns VBox status. 1835 * @param pDrvIns Driver instance. 1836 * @param pSSM The saved state handle. 1837 * @sa SSMR3HandleGetStatus 1838 */ 1839 DECLINLINE(int) PDMDrvHlpSSMHandleGetStatus(PPDMDRVINS pDrvIns, PSSMHANDLE pSSM) 1840 { 1841 return pDrvIns->pHlpR3->pfnSSMHandleGetStatus(pSSM); 1842 } 1843 1844 /** 1829 1845 * @copydoc PDMDRVHLPR3::pfnMMHeapFree 1830 1846 */ -
trunk/src/VBox/Devices/USB/DrvVUSBRootHub.cpp
r100776 r100779 1513 1513 if (pLoad) 1514 1514 { 1515 int rc = PDMDrvHlpTMTimerCreate(pDrvIns, TMCLOCK_VIRTUAL, vusbR3RhLoadReattachDevices, NULL, 1515 int rc = PDMDrvHlpSSMHandleGetStatus(pDrvIns, pSSM); 1516 if (RT_SUCCESS(rc)) 1517 { 1518 rc = PDMDrvHlpTMTimerCreate(pDrvIns, TMCLOCK_VIRTUAL, vusbR3RhLoadReattachDevices, NULL, 1516 1519 TMTIMER_FLAGS_NO_CRIT_SECT | TMTIMER_FLAGS_NO_RING0, 1517 1520 "VUSB reattach on load", &pLoad->hTimer); 1518 AssertLogRelRC(rc); 1519 if (RT_SUCCESS(rc)) 1520 rc = PDMDrvHlpTimerSetMillies(pDrvIns, pLoad->hTimer, 250); 1521 AssertLogRelRC(rc); 1522 if (RT_SUCCESS(rc)) 1523 { 1524 rc = PDMDrvHlpTimerSetMillies(pDrvIns, pLoad->hTimer, 250); 1525 if (RT_SUCCESS(rc)) 1526 return VINF_SUCCESS; 1527 } 1528 } 1521 1529 else 1522 vushR3RhFreeLoadData(pThis, pDrvIns); /** @todo or call vusbR3RhLoadReattachDevices directly then fail? */ 1530 rc = VINF_SUCCESS; 1531 vushR3RhFreeLoadData(pThis, pDrvIns); /** @todo or call vusbR3RhLoadReattachDevices directly then fail? */ 1523 1532 return rc; 1524 1533 }
Note:
See TracChangeset
for help on using the changeset viewer.