TianoCore EDK2 master
Loading...
Searching...
No Matches
TdxHelperLib.h File Reference
#include <PiPei.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI TdxHelperProcessTdHob (VOID)
 
EFI_STATUS EFIAPI TdxHelperMeasureTdHob (VOID)
 
EFI_STATUS EFIAPI TdxHelperMeasureCfvImage (VOID)
 
EFI_STATUS EFIAPI TdxHelperBuildGuidHobForTdxMeasurement (VOID)
 

Detailed Description

TdxHelperLib header file

Copyright (c) 2021 - 2023, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file TdxHelperLib.h.

Function Documentation

◆ TdxHelperBuildGuidHobForTdxMeasurement()

EFI_STATUS EFIAPI TdxHelperBuildGuidHobForTdxMeasurement ( VOID  )

Build the GuidHob for tdx measurements which were done in SEC phase. The measurement values are stored in WorkArea.

Return values
EFI_SUCCESSThe GuidHob is built successfully
OthersOther errors as indicated

Definition at line 86 of file PeiTdxHelper.c.

◆ TdxHelperMeasureCfvImage()

EFI_STATUS EFIAPI TdxHelperMeasureCfvImage ( VOID  )

In Tdx guest, Configuration FV (CFV) is treated as external input because it may contain the data provided by VMM. From the sucurity perspective Cfv image should be measured before it is consumed.

Return values
EFI_SUCCESSSuccessfully measure the CFV image
OthersOther error as indicated

Definition at line 70 of file PeiTdxHelper.c.

◆ TdxHelperMeasureTdHob()

EFI_STATUS EFIAPI TdxHelperMeasureTdHob ( VOID  )

In Tdx guest, TdHob is passed from host VMM to guest firmware and it contains the information of the memory resource. From the security perspective before it is consumed, it should be measured and extended.

Return values
EFI_SUCCESSSuccessfully measure the TdHob
OthersOther error as indicated

Definition at line 53 of file PeiTdxHelper.c.

◆ TdxHelperProcessTdHob()

EFI_STATUS EFIAPI TdxHelperProcessTdHob ( VOID  )

In Tdx guest, some information need to be passed from host VMM to guest firmware. For example, the memory resource, etc. These information are prepared by host VMM and put in TdHob which is described in TdxMetadata. TDVF processes the TdHob to accept memories.

Return values
EFI_SUCCESSSuccessfully process the TdHob
OthersOther error as indicated

Definition at line 36 of file PeiTdxHelper.c.