]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Library/PlatformInitLib/MemDetect.c
OvmfPkg: Introduce lazy accept in PlatformInitLib and PlatformPei
authorMin M Xu <min.m.xu@intel.com>
Tue, 1 Nov 2022 05:13:46 +0000 (13:13 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 1 Nov 2022 10:08:10 +0000 (10:08 +0000)
commitd1e41c620f287da7449849292d0e239c51ea0b19
tree4897da89070598058dcd073947993302e2d97d59
parent6ca9f410d1ff7c7cc3413fe01898e77da411016b
OvmfPkg: Introduce lazy accept in PlatformInitLib and PlatformPei

RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3937

There are below major changes in PlatformInitLib/PlatformPei
1. ProcessHobList
  The unaccepted memory is accepted if it is under 4G address.
  Please be noted: in current stage, we only accept the memory under 4G.
  We will re-visit here in the future when on-demand accept memory is
  required.

2. TransferTdxHobList
  Transfer the unaccepted memory hob to EFI_RESOURCE_SYSTEM_MEMORY hob
  if it is accepted.

Cc: Erdem Aktas <erdemaktas@google.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
OvmfPkg/Library/PlatformInitLib/IntelTdx.c
OvmfPkg/Library/PlatformInitLib/MemDetect.c