]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Include/Library/PlatformInitLib.h
OvmfPkg: Update PlatformInitLib for Tdx guest
[mirror_edk2.git] / OvmfPkg / Include / Library / PlatformInitLib.h
index 6152a43d0da7cc44c89775d24c09ae9eb843bcca..2987a367cc9c8fa06bac931f0633911e644a474d 100644 (file)
@@ -220,4 +220,18 @@ ProcessTdxHobList (
   VOID\r
   );\r
 \r
+/**\r
+  In Tdx guest, the system memory is passed in TdHob by host VMM. So\r
+  the major task of PlatformTdxPublishRamRegions is to walk thru the\r
+  TdHob list and transfer the ResourceDescriptorHob and MemoryAllocationHob\r
+  to the hobs in DXE phase.\r
+\r
+  MemoryAllocationHob should also be created for Mailbox and Ovmf work area.\r
+**/\r
+VOID\r
+EFIAPI\r
+PlatformTdxPublishRamRegions (\r
+  VOID\r
+  );\r
+\r
 #endif // PLATFORM_INIT_LIB_H_\r