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)
Mon, Apr 29, 6:46 PM
Unknown Object (File)
Mar 5 2024, 5:26 AM
Unknown Object (File)
Dec 30 2023, 10:23 AM
Unknown Object (File)
Dec 24 2023, 6:25 PM
Unknown Object (File)
Dec 20 2023, 5:35 AM
Unknown Object (File)
Dec 11 2023, 12:39 AM
Unknown Object (File)
Nov 2 2023, 5:39 AM
Unknown Object (File)
Oct 20 2023, 1:46 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.