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

Current lazy-accept accepts the memory under address of 4G. To improve
boot performance further more, we introduce the feature of customizing
the physical end address of lazy-accept in build time.

The end address is indicated by PcdAcceptMemoryEndAddress. It means it
accepts the memory under PcdAcceptMemoryEndAddress. The default value
and the max value is 4G. This is to be consistent with the current rule
(accept memory under 4G).

In IntelTdxX64 PcdAcceptMemoryEndAddress can be customized on-demand in
build-time by adding -D ACCEPT_MEMORY_END_ADDRESS=512 in build command.

Code: https://github.com/mxu9/edk2/tree/CustomizeLazyAcceptSize.v1

Cc: Erdem Aktas <erdemak...@google.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Signed-off-by: Min Xu <min.m...@intel.com>

Min M Xu (3):
  OvmfPkg: Customize lazy-accept's end address
  OvmfPkg/PeilessStartupLib: Update ConstructFwHobList for lazy-accept
  OvmfPkg/PlatformPei: Adjust LowerMemorySize in PublishPeiMemory

 OvmfPkg/IntelTdx/IntelTdxX64.dsc              |  8 ++++
 OvmfPkg/Library/PeilessStartupLib/Hob.c       | 25 +++++++++----
 .../PeilessStartupLib/PeilessStartupLib.inf   |  1 +
 OvmfPkg/Library/PlatformInitLib/IntelTdx.c    | 37 ++++++++++++++-----
 .../PlatformInitLib/PlatformInitLib.inf       |  1 +
 OvmfPkg/OvmfPkg.dec                           |  2 +
 OvmfPkg/PlatformPei/MemDetect.c               | 13 +++++++
 OvmfPkg/PlatformPei/PlatformPei.inf           |  1 +
 8 files changed, 72 insertions(+), 16 deletions(-)

-- 
2.29.2.windows.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#97752): https://edk2.groups.io/g/devel/message/97752
Mute This Topic: https://groups.io/mt/95882249/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to