]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/IntelTdx/TdxHelperLib/TdxHelperNull.c
2 NULL instance of TdxHelperLib
4 Copyright (c) 2022 - 2023, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
14 In Tdx guest, some information need to be passed from host VMM to guest
15 firmware. For example, the memory resource, etc. These information are
16 prepared by host VMM and put in TdHob which is described in TdxMetadata.
17 TDVF processes the TdHob to accept memories.
19 @retval EFI_SUCCESS Successfully process the TdHob
20 @retval Others Other error as indicated
24 TdxHelperProcessTdHob (
28 return EFI_UNSUPPORTED
;
32 In Tdx guest, TdHob is passed from host VMM to guest firmware and it contains
33 the information of the memory resource. From the security perspective before
34 it is consumed, it should be measured and extended.
36 * @retval EFI_SUCCESS Successfully measure the TdHob
37 * @retval Others Other error as indicated
41 TdxHelperMeasureTdHob (
45 return EFI_UNSUPPORTED
;
49 * In Tdx guest, Configuration FV (CFV) is treated as external input because it
50 * may contain the data provided by VMM. From the sucurity perspective Cfv image
51 * should be measured before it is consumed.
53 * @retval EFI_SUCCESS Successfully measure the CFV image
54 * @retval Others Other error as indicated
58 TdxHelperMeasureCfvImage (
62 return EFI_UNSUPPORTED
;
66 Build the GuidHob for tdx measurements which were done in SEC phase.
67 The measurement values are stored in WorkArea.
69 @retval EFI_SUCCESS The GuidHob is built successfully
70 @retval Others Other errors as indicated
74 TdxHelperBuildGuidHobForTdxMeasurement (
78 return EFI_UNSUPPORTED
;