Skip to content

Commit

Permalink
OvmfPkg: Create SP800155 HOBs from QemuFwCfgFile
Browse files Browse the repository at this point in the history
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 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 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 checked in order to proceed
to the next event in the file that immediately follows.

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
  • Loading branch information
deeglaze committed Jun 11, 2024
1 parent 0e7637d commit 05506e7
Show file tree
Hide file tree
Showing 4 changed files with 551 additions and 1 deletion.
2 changes: 2 additions & 0 deletions OvmfPkg/PlatformPei/Platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <OvmfPlatforms.h>

#include "Platform.h"
#include "PlatformId.h"

EFI_PEI_PPI_DESCRIPTOR mPpiBootMode[] = {
{
Expand Down Expand Up @@ -363,6 +364,7 @@ InitializePlatform (
MiscInitializationForMicrovm (PlatformInfoHob);
} else {
MiscInitialization (PlatformInfoHob);
PlatformIdInitialization (PeiServices);
}

IntelTdxInitialize ();
Expand Down
Loading

0 comments on commit 05506e7

Please sign in to comment.