audk/OvmfPkg/PlatformPei/PlatformId.h
Dionna Glaze 6b256cef01 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/sp800155evt/%d to
pass along events that the VMM sees fit to provide. One event per
number, starting from 0, increasing by 1 until there are no more
contiguous files.

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.

Each event read from fw_cfg, is written one-by-one to
a EFI_HOB_GUID_TYPE HOB created for the event. The name they target
gTcg800155PlatformIdEventHobGuid for the later Dxe driver to use to
extend the event log.

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
2024-07-02 16:10:29 +00:00

27 lines
815 B
C

/** @file
PlatformId internal header for PlatformPei
Copyright (c) 2024, Google LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __PLATFORM_PEI_PLATFORMID_H__
#define __PLATFORM_PEI_PLATFORMID_H__
/**
* Reads opt/org.tianocode/sp800155evt/%d from 0 to the first positive integer
* where the file does not exist and registers each file's contents in an
* EFI_HOB_GUID_TYPE with name gTcg800155PlatformIdEventHobGuid. These HOBs
* are used by a later driver to write to the event log as unmeasured events.
* These events inform the event log analyzer of firmware provenance and
* reference integrity manifests.
**/
VOID
PlatformIdInitialization (
IN CONST EFI_PEI_SERVICES **PeiServices
);
#endif // __PLATFORM_PEI_PLATFORMID_H__