VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/IntelTdx/TdxHelperLib/TdxHelperNull.c@ 105670

Last change on this file since 105670 was 99404, checked in by vboxsync, 23 months ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1/** @file
2 NULL instance of TdxHelperLib
3
4 Copyright (c) 2022 - 2023, Intel Corporation. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#include <Base.h>
11#include <PiPei.h>
12
13/**
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.
18
19 @retval EFI_SUCCESS Successfully process the TdHob
20 @retval Others Other error as indicated
21**/
22EFI_STATUS
23EFIAPI
24TdxHelperProcessTdHob (
25 VOID
26 )
27{
28 return EFI_UNSUPPORTED;
29}
30
31/**
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.
35 *
36 * @retval EFI_SUCCESS Successfully measure the TdHob
37 * @retval Others Other error as indicated
38 */
39EFI_STATUS
40EFIAPI
41TdxHelperMeasureTdHob (
42 VOID
43 )
44{
45 return EFI_UNSUPPORTED;
46}
47
48/**
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.
52 *
53 * @retval EFI_SUCCESS Successfully measure the CFV image
54 * @retval Others Other error as indicated
55 */
56EFI_STATUS
57EFIAPI
58TdxHelperMeasureCfvImage (
59 VOID
60 )
61{
62 return EFI_UNSUPPORTED;
63}
64
65/**
66 Build the GuidHob for tdx measurements which were done in SEC phase.
67 The measurement values are stored in WorkArea.
68
69 @retval EFI_SUCCESS The GuidHob is built successfully
70 @retval Others Other errors as indicated
71**/
72EFI_STATUS
73EFIAPI
74TdxHelperBuildGuidHobForTdxMeasurement (
75 VOID
76 )
77{
78 return EFI_UNSUPPORTED;
79}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette