**Description:**
Passes a TPM2 device to a VM guest. It maps the CRB of the TPM2 device into the guest and reports it address by ACPI tables.
**How to use TPM2 passthrough:**
Add `-l tpm2,passthru` to your bhyve cmd line.
```
bhyve -c 2 -m 4G -A -H -P -w \
-s 0,hostbridge \
-s 4,virtio-blk,/root/win/win10.img \
-s 5,virtio-net,tap10 \
-s 20,xhci,tablet \
-s 29,fbuf,tcp=0.0.0.0:5900,wait \
-s 31,lpc \
-l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_CODE.fd \
-l tpm2,passthru \
win10
```
**Tested Scenarios:**
| **OS** | |
| Ubuntu | Working |
| Windows | Not working |