mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-07 11:50:30 +00:00
DM: Add support for virtual TPM enabling
Support TPM enable option when launch UOS. New option: "--vtpm sock_path=$PATH_OF_SWTPM_SOCKET". If valid option parsed, then init virtual tpm device. Tracked-On: #1924 Signed-off-by: Qi Yadong <yadong.qi@intel.com> Reviewed-by: Zhu Bing <bing.zhu@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>
This commit is contained in:
@@ -39,4 +39,14 @@ enum {
|
||||
#define TPM_CRB_REG_SIZE ((CRB_DATA_BUFFER) - (TPM_CRB_MMIO_ADDR))
|
||||
#define TPM_CRB_DATA_BUFFER_SIZE ((TPM_CRB_MMIO_SIZE) - (TPM_CRB_REG_SIZE))
|
||||
|
||||
/* APIs by tpm.c */
|
||||
/* Initialize Virtual TPM2 */
|
||||
void init_vtpm2(struct vmctx *ctx);
|
||||
|
||||
/* Deinitialize Virtual TPM2 */
|
||||
void deinit_vtpm2(struct vmctx *ctx);
|
||||
|
||||
/* Parse Virtual TPM option from command line */
|
||||
int acrn_parse_vtpm2(char *arg);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user