]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/OvmfPkgX64.dsc
OvmfPkg: Refactor ProcessHobList
authorMin M Xu <min.m.xu@intel.com>
Fri, 3 Feb 2023 03:31:42 +0000 (11:31 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sat, 4 Feb 2023 03:38:15 +0000 (03:38 +0000)
commitc0984d1ff28325a8f1c76e23a79141cbb12c3e4f
tree3378638df8b145e0c878210f71f3fe2c9baae13e
parent852ae4cd80f37e2521160e5b1f12c7dcca2d6048
OvmfPkg: Refactor ProcessHobList

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4243

ProcessHobList once was implemented in PlatformInitLib and it walks thru
TdHob list and accept un-accepted memories.

This patch moves the codes to SecTdxHelperLib and rename ProcessHobList
as TdxHelperProcessTdHob

After TdxHelperProcessTdHob is introduced, below changes are applied:
 - Call TdxHelperProcessTdHob instead of ProcessHobList in SecMain.c
   (in both OvmfPkgX64/Sec and IntelTdx/Sec).
 - Delete the duplicated codes in PlatformInitLib

Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Michael Roth <michael.roth@amd.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
OvmfPkg/Include/Library/PlatformInitLib.h
OvmfPkg/IntelTdx/Sec/SecMain.c
OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c
OvmfPkg/Library/PlatformInitLib/IntelTdx.c
OvmfPkg/Library/PlatformInitLib/IntelTdxNull.c
OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
OvmfPkg/OvmfPkgX64.dsc
OvmfPkg/Sec/SecMain.c