Changeset 91615 in vbox for trunk/src/VBox/Devices/Security/DrvTpmEmuTpms.cpp
- Timestamp:
- Oct 7, 2021 10:34:32 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Security/DrvTpmEmuTpms.cpp
r91595 r91615 322 322 { 323 323 LogRel(("DrvTpmEmuTpms#%u: Failed to initialize TPM emulation with %#x\n", 324 pDrvIns->iInstance, rcTpm)); 325 PDMDrvHlpVMSetError(pDrvIns, VERR_INVALID_PARAMETER, RT_SRC_POS, "Failed to startup the TPM with %u", rcTpm); 326 } 327 } 328 329 330 /** 331 * @interface_method_impl{PDMDRVREG,pfnReset} 332 */ 333 static DECLCALLBACK(void) drvTpmEmuTpmsReset(PPDMDRVINS pDrvIns) 334 { 335 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns); 336 337 TPMLIB_Terminate(); 338 TPM_RESULT rcTpm = TPMLIB_MainInit(); 339 if (RT_UNLIKELY(rcTpm != TPM_SUCCESS)) 340 { 341 LogRel(("DrvTpmEmuTpms#%u: Failed to reset TPM emulation with %#x\n", 324 342 pDrvIns->iInstance, rcTpm)); 325 343 PDMDrvHlpVMSetError(pDrvIns, VERR_INVALID_PARAMETER, RT_SRC_POS, "Failed to startup the TPM with %u", rcTpm); … … 487 505 drvTpmEmuTpmsPowerOn, 488 506 /* pfnReset */ 489 NULL,507 drvTpmEmuTpmsReset, 490 508 /* pfnSuspend */ 491 509 NULL,
Note:
See TracChangeset
for help on using the changeset viewer.