]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/MpInitLib/PeiMpLib.c
UefiCpuPkg/MpInitLib: use PcdConfidentialComputingAttr to check SEV status
[mirror_edk2.git] / UefiCpuPkg / Library / MpInitLib / PeiMpLib.c
index ab79360bb935eaaed47fe57e85e54a4d03756530..efce5747277a2b6d507ebcad5d1d4f002b4e7701 100644 (file)
@@ -225,7 +225,7 @@ GetWakeupBuffer (
         // Need memory under 1MB to be collected here\r
         //\r
         WakeupBufferEnd = Hob.ResourceDescriptor->PhysicalStart + Hob.ResourceDescriptor->ResourceLength;\r
-        if (PcdGetBool (PcdSevEsIsEnabled) &&\r
+        if (ConfidentialComputingGuestHas (CCAttrAmdSevEs) &&\r
             (WakeupBufferEnd > mSevEsPeiWakeupBuffer))\r
         {\r
           //\r
@@ -264,7 +264,7 @@ GetWakeupBuffer (
             WakeupBufferSize\r
             ));\r
 \r
-          if (PcdGetBool (PcdSevEsIsEnabled)) {\r
+          if (ConfidentialComputingGuestHas (CCAttrAmdSevEs)) {\r
             //\r
             // Next SEV-ES wakeup buffer allocation must be below this\r
             // allocation\r