Page MenuHomeFreeBSD

bhyve: add execution command for tpm devices
ClosedPublic

Authored by corvink on Jun 7 2023, 12:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 10:08 PM
Unknown Object (File)
Thu, Nov 14, 12:55 AM
Unknown Object (File)
Oct 21 2024, 5:36 PM
Unknown Object (File)
Oct 4 2024, 9:36 PM
Unknown Object (File)
Sep 27 2024, 2:08 PM
Unknown Object (File)
Sep 22 2024, 8:09 PM
Unknown Object (File)
Sep 17 2024, 12:15 AM
Unknown Object (File)
Sep 12 2024, 2:19 AM
Subscribers

Details

Summary

Executing a tpm command is as easy as writing the command to the tpm fd and reading back the result.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

usr.sbin/bhyve/tpm_emul_passthru.c
71

Should you check rsp_size >= sizeof(struct tpm_resp_hdr) before doing anything?

74

rsp_size is unsigned, the last format should be %u. I'm surprised the compiler doesn't warn about it.

markj added inline comments.
usr.sbin/bhyve/tpm_emul_passthru.c
71
78
This revision is now accepted and ready to land.Jun 23 2023, 2:58 PM