]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Library/PlatformInitLib/IntelTdxNull.c
3ebe582af8de448f8dcf93e533c00f46900b057f
2 Initialize Intel TDX support.
4 Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
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.
17 Information in HobList is treated as external input. From the security
18 perspective before it is consumed, it should be validated.
20 @retval EFI_SUCCESS Successfully process the hoblist
21 @retval Others Other error as indicated
29 return EFI_UNSUPPORTED
;
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.
38 MemoryAllocationHob should also be created for Mailbox and Ovmf work area.
42 PlatformTdxPublishRamRegions (