Page MenuHomeFreeBSD

bhyve: add basic TPM emulation struct
ClosedPublic

Authored by corvink on Jun 7 2023, 12:05 PM.
Tags
None
Referenced Files
F109420777: D40454.id122921.diff
Tue, Feb 4, 8:27 PM
Unknown Object (File)
Mon, Jan 27, 7:11 AM
Unknown Object (File)
Sun, Jan 26, 12:46 PM
Unknown Object (File)
Sun, Jan 26, 10:58 AM
Unknown Object (File)
Sat, Jan 25, 1:59 AM
Unknown Object (File)
Fri, Jan 24, 1:41 PM
Unknown Object (File)
Sat, Jan 18, 11:27 PM
Unknown Object (File)
Sat, Jan 18, 8:56 AM
Subscribers

Details

Summary

This struct will be used to implement various TPM emulations like a TPM
passthrough or a virtual TPM.

Diff Detail

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

Event Timeline

usr.sbin/bhyve/tpm_device.c
88

Above you explicitly check for a missing "version" key, but not here. Why?

90

The opening brace should go on the previous line.

97
corvink added inline comments.
usr.sbin/bhyve/tpm_device.c
88

Those keys should always be present. An explicit check is unnecessary. D40558 fixes it for the version key.

This revision is now accepted and ready to land.Jun 15 2023, 3:11 PM
This revision was automatically updated to reflect the committed changes.
corvink marked an inline comment as done.