Page MenuHomeFreeBSD

bhyve: trap crb register of tpm devices
AbandonedPublic

Authored by corvink on Jun 7 2023, 12:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 8, 3:51 PM
Unknown Object (File)
Tue, Jan 6, 2:05 AM
Unknown Object (File)
Nov 29 2025, 5:28 PM
Unknown Object (File)
Nov 17 2025, 10:10 PM
Unknown Object (File)
Nov 13 2025, 2:22 PM
Unknown Object (File)
Nov 8 2025, 12:00 AM
Unknown Object (File)
Oct 31 2025, 7:25 PM
Unknown Object (File)
Oct 29 2025, 12:58 PM
Subscribers

Details

Reviewers
jhb
markj
Group Reviewers
bhyve
Summary

The crb emulation traps register
accesses and passes tpm commands to the tpm passthru emulation. The tpm
passthru emulation then takes the command, forwards it to the FreeBSD
tpm driver by accessing /dev/tpm0 and returns the result of the command
by reading back /dev/tpm0.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 51953
Build 48844: arc lint + arc unit

Event Timeline

usr.sbin/bhyve/tpm_intf_crb.c
502

Why not just write mr.name = "tpm_intf_crb";?

504

It would be nice to avoid duplicating this initialization with the paired register_mem() call.

505

I think we can assert that unregister_mem() does not fail.

This is a missing part of D40459.