-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OvmfPkg: Create SP800155 HOBs from QemuFwCfgFile
Signed firmware measurements are allowed to be passed along to in the TCG and CC event logs according to the TCG PC Client Platform Firware Profile. The event logs include events that Tcg2Dxe reads from appropriately GUIDed HOBs, so allow opt/org.tianocode/sp800155evts to pass along events that the VMM sees fit to provide. The VMM may provide reference measurements through UEFI variables that it references from the SP800-155 event3 structure given the appropriate RIM locator type, or via URL, etc. After the uint16-sized events are read from fw_cfg, they are written one-by-one to EFI_HOB_GUID_TYPE HOBs created for the events. The name they target gTcg800155PlatformIdEventHobGuid for the later Dxe driver to use to extend the event log. The sizes are expected to be in the architecture's endianness. The internal consistency of the event, i.e., the fact that the sum total of sizes present in the event are within the range of the opt/org.tianocode/sp800155evts file size, is not checked, as it will only be parsed by an event log analyzer that will need to perform its own validity checking. Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
- Loading branch information
Showing
2 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters