}\r
\r
#ifdef MDE_CPU_X64\r
- if (MemEncryptSevEsIsEnabled ()) {\r
+ if (FixedPcdGet32 (PcdOvmfWorkAreaSize) != 0) {\r
//\r
- // If SEV-ES is enabled, reserve the SEV-ES work area.\r
+ // Reserve the work area.\r
//\r
// Since this memory range will be used by the Reset Vector on S3\r
// resume, it must be reserved as ACPI NVS.\r
// such that they would overlap the work area.\r
//\r
BuildMemoryAllocationHob (\r
- (EFI_PHYSICAL_ADDRESS)(UINTN) FixedPcdGet32 (PcdSevEsWorkAreaBase),\r
- (UINT64)(UINTN) FixedPcdGet32 (PcdSevEsWorkAreaSize),\r
+ (EFI_PHYSICAL_ADDRESS)(UINTN) FixedPcdGet32 (PcdOvmfWorkAreaBase),\r
+ (UINT64)(UINTN) FixedPcdGet32 (PcdOvmfWorkAreaSize),\r
mS3Supported ? EfiACPIMemoryNVS : EfiBootServicesData\r
);\r
}\r