]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/MpInitLib/MpLib.c
UefiCpuPkg/MpInitLib: Add CPU MP data flag to indicate if SEV-ES is enabled
[mirror_edk2.git] / UefiCpuPkg / Library / MpInitLib / MpLib.c
index 9b0660a5d4ea9d0710c4dbfdb314919230c80266..2a3fbeef35f78738ca8d16b938ae16fb53328fd3 100644 (file)
@@ -1704,6 +1704,7 @@ MpInitLibInitialize (
   CpuMpData->CpuData          = (CPU_AP_DATA *) (CpuMpData + 1);\r
   CpuMpData->CpuInfoInHob     = (UINT64) (UINTN) (CpuMpData->CpuData + MaxLogicalProcessorNumber);\r
   InitializeSpinLock(&CpuMpData->MpLock);\r
+  CpuMpData->SevEsIsEnabled = PcdGetBool (PcdSevEsIsEnabled);\r
 \r
   //\r
   // Make sure no memory usage outside of the allocated buffer.\r