History log of /freebsd-current/usr.sbin/bhyve/tpm_emul_passthru.c
Revision Date Author Comments
# 29200a81 28-Aug-2022 Corvin Köhne <corvink@FreeBSD.org>

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


# 11ba2146 15-May-2023 Corvin Köhne <corvink@FreeBSD.org>

bhyve: add basic TPM passthrough emulation

At the moment, the emulation only opens a file descriptor to the TPM
device. Some subsequent commits will read and write from it.

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