mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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> |
||
|---|---|---|
| .. | ||
| AmdSev.c | ||
| ClearCache.c | ||
| FeatureControl.c | ||
| Fv.c | ||
| IntelTdx.c | ||
| MemDetect.c | ||
| MemTypeInfo.c | ||
| Platform.c | ||
| Platform.h | ||
| PlatformId.c | ||
| PlatformId.h | ||
| PlatformPei.inf | ||
| SmmRelocation.c | ||