]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/MpInitLib: For SEV-ES guest, set stack based on processor number
authorTom Lendacky <thomas.lendacky@amd.com>
Fri, 6 Nov 2020 17:53:13 +0000 (11:53 -0600)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 10 Nov 2020 19:07:55 +0000 (19:07 +0000)
commitd150439b726364b7fb7dc23e0465e472fc650ec6
tree7ea3f7f9c33b449c978d794be75236f420e40ed2
parent1b0db1ec8762ace9d31ad73ff20a64e8ba3f2a8d
UefiCpuPkg/MpInitLib: For SEV-ES guest, set stack based on processor number

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

Set the SEV-ES reset stack address for an AP based on the processor number
instead of the APIC ID in case the APIC IDs are not zero-based and densely
packed/enumerated. This will ensure an AP reset stack address does not get
set outside of the AP reset stack memory allocation.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Acked-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <24866de07d2a954dec71df70972f1851273020d8.1604685192.git.thomas.lendacky@amd.com>
UefiCpuPkg/Library/MpInitLib/MpLib.c