mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 18:14:53 +00:00
DM: Support TPM2 CRB device virtualization
Full virtualized TPM CRB device. The TPM CRB module will handle TPM2 MMIO access. It will forward the command/data to TPM emulator for command processing if there is a valid TPM command. 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:
@@ -48,4 +48,11 @@ int swtpm_startup(size_t buffersize);
|
||||
/* Cancellation of the current TPM2 command */
|
||||
void swtpm_cancel_cmd(void);
|
||||
|
||||
/* APIs by tpm_crb.c */
|
||||
/* Initialize TPM CRB Virtual Device */
|
||||
int init_tpm_crb(struct vmctx *ctx);
|
||||
|
||||
/* Deinitialize TPM CRB Virtual Device */
|
||||
void deinit_tpm_crb(struct vmctx *ctx);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user