VirtualBox

Ignore:
Timestamp:
Oct 20, 2021 9:05:23 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147670
Message:

Devices/Security: Change the TPM drivers to access the CFGM API through the driver helper callback table only, bugref:10074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Security/DrvTpmEmuTpms.cpp

    r91615 r91867  
    362362    RT_NOREF(fFlags);
    363363    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    364     PDRVTPMEMU pThis = PDMINS_2_DATA(pDrvIns, PDRVTPMEMU);
     364    PDRVTPMEMU      pThis = PDMINS_2_DATA(pDrvIns, PDRVTPMEMU);
     365    PCPDMDRVHLPR3   pHlp  = pDrvIns->pHlpR3;
    365366
    366367    /*
     
    407408    TPMLIB_TPMVersion enmVersion = TPMLIB_TPM_VERSION_2;
    408409    uint32_t uTpmVersion = 0;
    409     rc = CFGMR3QueryU32Def(pCfg, "TpmVersion", &uTpmVersion, 2);
     410    rc = pHlp->pfnCFGMQueryU32Def(pCfg, "TpmVersion", &uTpmVersion, 2);
    410411    if (RT_FAILURE(rc))
    411412        return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS,
     
    438439                                   N_("Querying the maximum supported buffer size failed with %u"), rcTpm);
    439440
    440     rc = CFGMR3QueryU32Def(pCfg, "BufferSize", &pThis->cbBuffer, (uint32_t)cbBufferMax);
     441    rc = pHlp->pfnCFGMQueryU32Def(pCfg, "BufferSize", &pThis->cbBuffer, (uint32_t)cbBufferMax);
    441442    if (RT_FAILURE(rc))
    442443        return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette