mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
Add support for E820 Soft Reserved Memory regions in OVMF firmware. This memory type is used by QEMU to expose Specific Purpose Memory (SPM). Changes: - Add EfiAcpiAddressRangeSoftReserved to EFI_ACPI_MEMORY_TYPE enum - Handle SoftReserved in PlatformAddHobCB() by creating Resource HOBs with standard memory attributes plus EFI_RESOURCE_ATTRIBUTE_SPECIAL_PURPOSE Background: - E820_TYPE_SOFT_RESERVED (0xEFFFFFFF) is defined in Linux kernel: include/uapi/linux/e820.h - SPM (Specific Purpose Memory) is defined in ACPI 6.4+ specification - Use cases include High Bandwidth Memory (HBM) attached to accelerators/GPUs The 0xEFFFFFFF value follows the E820 extension convention where values above 0x7FFFFFFF are reserved for OEM/firmware-specific use. Linux kernel adopted this value for "soft reserved" memory that should not be used by the OS for general allocation but can be managed by device drivers. Signed-off-by: FangSheng Huang <FangSheng.Huang@amd.com> |
||
|---|---|---|
| .. | ||
| X64 | ||
| Cmos.c | ||
| Igvm.c | ||
| IntelTdx.c | ||
| IntelTdxNull.c | ||
| MemDetect.c | ||
| Platform.c | ||
| PlatformInitLib.inf | ||