]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/MpInitLib: Reduce reset vector memory pressure
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 23 Sep 2020 18:04:00 +0000 (13:04 -0500)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 19 Oct 2020 21:47:21 +0000 (21:47 +0000)
commit93edd1887e34c3959ce927da1a22e8c54ce18a83
tree8794258244cbafa7e95c6b66726e5a17c8344dc6
parent92e9c44f205a876556abe1a1addea5c40e4f3ccf
UefiCpuPkg/MpInitLib: Reduce reset vector memory pressure

The AP reset vector stack allocation is only required if running as an
SEV-ES guest. Since the reset vector allocation is below 1MB in memory,
eliminate the requirement for bare-metal systems and non SEV-ES guests
to allocate the extra stack area, which can be large if the
PcdCpuMaxLogicalProcessorNumber value is large, and also remove the
CPU_STACK_ALIGNMENT alignment.

Fixes: 7b7508ad784d ("UefiCpuPkg: Allow AP booting under SEV-ES")
Cc: Garrett Kirkendall <garrett.kirkendall@amd.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <21345cdbc906519558202b3851257ca07b9239ba.1600884239.git.thomas.lendacky@amd.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
[lersek@redhat.com: supply missing space character after "PcdGet32"]
UefiCpuPkg/Library/MpInitLib/MpLib.c