diff options
| author | FangSheng Huang <FangSheng.Huang@amd.com> | 2026-06-30 11:22:25 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-07-20 16:58:25 +0300 |
| commit | 6c6d0a72c25ee4a43179d9d25b938eaa1381f8c8 (patch) | |
| tree | e916775ac7b97c4ec52c849ab246a9b3359ec2b7 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c | |
| parent | 9e3e68218cf60b3689a6481f27e6511ff06aaf6f (diff) | |
| download | edk2-6c6d0a72c25ee4a43179d9d25b938eaa1381f8c8.tar.xz | |
OvmfPkg/PlatformPei: retain SoftReserved memory under SEV-SNP
Soft Reserved (Specific Purpose Memory) regions carry the
EFI_RESOURCE_ATTRIBUTE_SPECIAL_PURPOSE attribute, which the OS sees as
EFI_MEMORY_SP (E820 Soft Reserved). Under SEV-SNP this does not reach the
guest: AmdSevSnpInitialize() changes every EFI_RESOURCE_SYSTEM_MEMORY HOB
above 4GB to EFI_RESOURCE_MEMORY_UNACCEPTED, and AcceptAllMemory() later
re-adds the region as plain system memory without EFI_MEMORY_SP, so the
guest sees ordinary RAM instead of Soft Reserved.
Exclude SPECIAL_PURPOSE regions from the unaccepted conversion so they keep
the EFI_RESOURCE_SYSTEM_MEMORY type and are pre-validated in place, like
sub-4GB memory.
Signed-off-by: FangSheng Huang <FangSheng.Huang@amd.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions
