]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/PlatformInitLib/IntelTdxNull.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / Library / PlatformInitLib / IntelTdxNull.c
1 /** @file
2 Initialize Intel TDX support.
3
4 Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #include <PiPei.h>
11
12 /**
13 In Tdx guest, some information need to be passed from host VMM to guest
14 firmware. For example, the memory resource, etc. These information are
15 prepared by host VMM and put in HobList which is described in TdxMetadata.
16
17 Information in HobList is treated as external input. From the security
18 perspective before it is consumed, it should be validated.
19
20 @retval EFI_SUCCESS Successfully process the hoblist
21 @retval Others Other error as indicated
22 **/
23 EFI_STATUS
24 EFIAPI
25 ProcessTdxHobList (
26 VOID
27 )
28 {
29 return EFI_UNSUPPORTED;
30 }
31
32 /**
33 In Tdx guest, the system memory is passed in TdHob by host VMM. So
34 the major task of PlatformTdxPublishRamRegions is to walk thru the
35 TdHob list and transfer the ResourceDescriptorHob and MemoryAllocationHob
36 to the hobs in DXE phase.
37
38 MemoryAllocationHob should also be created for Mailbox and Ovmf work area.
39 **/
40 VOID
41 EFIAPI
42 PlatformTdxPublishRamRegions (
43 VOID
44 )
45 {
46 }