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)
Oct 1 2024, 10:03 PM
Unknown Object (File)
Sep 27 2024, 6:02 PM
Unknown Object (File)
Sep 19 2024, 11:54 PM
Unknown Object (File)
Sep 19 2024, 6:23 PM
Unknown Object (File)
Sep 11 2024, 9:16 AM
Unknown Object (File)
Sep 5 2024, 9:42 AM
Unknown Object (File)
Sep 1 2024, 2:46 PM
Unknown Object (File)
Aug 5 2024, 3:19 AM
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.