HomeFreeBSD

bhyve: emulate TPM passthru by accessing /dev/tpmX

Description

bhyve: emulate TPM passthru by accessing /dev/tpmX

To send commands to the TPM device, bhyve can use the host TPM driver by
reading and writing from /dev/tpmX. Using this approach, only the host
TPM driver has to detect and interact with the physical TPM interface.
This simplifies bhyve's code much. As the host TPM driver has to
interact with the TPM regardless of bhyve making use of it or not, makes
it a good approach.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D40460

Details

Provenance
corvinkAuthored on Aug 29 2022, 10:10 AM
Reviewer
markj
Differential Revision
D40460: bhyve: add execution command for tpm devices
Parents
rG28dc1aa73392: bhyve: add emulation for CRB register of TPM devices
Branches
Unknown
Tags
Unknown