audk/UefiCpuPkg/Library/MpInitLib
Tom Lendacky 3c5f9ac5c3 UefiCpuPkg/MpInitLib: Copy SEV-ES save area pointer during APIC ID sorting
With SEV-SNP, the SEV-ES save area for a vCPU should be unique to that
vCPU. After commit 3323359a81, the VMSA allocation was re-used, but when
sorting the CPUs by APIC ID, the save area was not updated to follow the
original CPU. Similar to the StartupApSignal address, the SevEsSaveArea
address should be updated when sorting the CPUs.

This does not cause an issue at this time because all APs are in HLT state
and then are (re)started at the same time, with the same VMSA contents.
However, this should be fixed to account for any change in future
behavior.

Fixes: 3323359a81 ("UefiCpuPkg/MpInitLib: Reuse VMSA allocation to ...")
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2023-11-28 11:07:59 +00:00
..
Ia32 UefiCpuPkg: ApWakeupFunction directly use CpuMpData. 2023-07-11 02:47:27 +00:00
X64 UefiCpuPkg: ApWakeupFunction directly use CpuMpData. 2023-07-11 02:47:27 +00:00
AmdSev.c UefiCpuPkg/MpInitLib: Use AsmCpuidEx() for CPUID_EXTENDED_TOPOLOGY leaf 2023-11-28 11:07:59 +00:00
DxeMpInitLib.inf UefiCpuPkg: Add PcdFirstTimeWakeUpAPsBySipi 2023-08-14 14:40:41 +00:00
DxeMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
DxeMpLib.c UefiCpuPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
Microcode.c UefiCpuPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
MpEqu.inc UefiCpuPkg/MpInitLib: Update the comments of _CPU_MP_DATA. 2023-11-27 05:21:45 +00:00
MpHandOff.h UefiCpuPkg: Correct file description for MpHandOff header file 2023-10-31 20:55:37 +00:00
MpLib.c UefiCpuPkg/MpInitLib: Copy SEV-ES save area pointer during APIC ID sorting 2023-11-28 11:07:59 +00:00
MpLib.h UefiCpuPkg/MpInitLib: Update the comments of _CPU_MP_DATA. 2023-11-27 05:21:45 +00:00
PeiMpInitLib.inf UefiCpuPkg: Add PcdFirstTimeWakeUpAPsBySipi 2023-08-14 14:40:41 +00:00
PeiMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
PeiMpLib.c UefiCpuPkg: Create MpHandOff. 2023-07-11 02:47:27 +00:00