]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Library/PlatformInitLib.h
OvmfPkg: Update PlatformInitLib to process Tdx hoblist
[mirror_edk2.git] / OvmfPkg / Include / Library / PlatformInitLib.h
index b31f521578c2b7ce1f3dc23a6e21dd3a13676295..6152a43d0da7cc44c89775d24c09ae9eb843bcca 100644 (file)
@@ -203,4 +203,21 @@ PlatformMaxCpuCountInitialization (
   IN OUT EFI_HOB_PLATFORM_INFO  *PlatformInfoHob\r
   );\r
 \r
+/**\r
+  In Tdx guest, some information need to be passed from host VMM to guest\r
+  firmware. For example, the memory resource, etc. These information are\r
+  prepared by host VMM and put in HobList which is described in TdxMetadata.\r
+\r
+  Information in HobList is treated as external input. From the security\r
+  perspective before it is consumed, it should be validated.\r
+\r
+  @retval   EFI_SUCCESS   Successfully process the hoblist\r
+  @retval   Others        Other error as indicated\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+ProcessTdxHobList (\r
+  VOID\r
+  );\r
+\r
 #endif // PLATFORM_INIT_LIB_H_\r