audk/UefiCpuPkg/Library/MpInitLib
Tom Lendacky e88a5b9833 UefiCpuPkg/MpInitLib: Add CPU MP data flag to indicate if SEV-ES is enabled
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2198

When starting APs in an SMP configuration, the AP needs to know if it is
running as an SEV-ES guest in order to assign a GHCB page.

Add a field to the CPU_MP_DATA structure that will indicate if SEV-ES is
enabled. This new field is set during MP library initialization with the
PCD value PcdSevEsIsEnabled. This flag can then be used to determine if
SEV-ES is enabled.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
2020-08-17 02:46:39 +00:00
..
Ia32 UefiCpuPkg/MpInitLib: increase NumApsExecuting only for ApInitConfig 2019-06-10 10:53:42 +08:00
X64 UefiCpuPkg/MpInitLib: Enable 5-level paging for AP when BSP's enabled 2019-08-09 08:52:08 +08:00
DxeMpInitLib.inf UefiCpuPkg/MpInitLib: Add CPU MP data flag to indicate if SEV-ES is enabled 2020-08-17 02:46:39 +00:00
DxeMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
DxeMpLib.c UefiCpuPkg/MpInitLib: Add out attribute for parameter. 2020-03-27 02:20:02 +00:00
Microcode.c UefiCpuPkg: Remove FIT based microcode shadow logic from MpInitLib. 2020-02-14 04:31:18 +00:00
MpLib.c UefiCpuPkg/MpInitLib: Add CPU MP data flag to indicate if SEV-ES is enabled 2020-08-17 02:46:39 +00:00
MpLib.h UefiCpuPkg/MpInitLib: Add CPU MP data flag to indicate if SEV-ES is enabled 2020-08-17 02:46:39 +00:00
PeiMpInitLib.inf UefiCpuPkg/MpInitLib: Add CPU MP data flag to indicate if SEV-ES is enabled 2020-08-17 02:46:39 +00:00
PeiMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
PeiMpLib.c UefiCpuPkg/MpInitLib: Add out attribute for parameter. 2020-03-27 02:20:02 +00:00