audk/OvmfPkg/RiscVVirt
Sunil V L 71fd87e98a OvmfPkg/RiscVVirt: Support multiple reserved memory ranges
M-mode firmware ranges should not be used by EDK2/OS.
Currently, we search for mmode_resv0 node in FDT and mark it as the
reserved memory in EFI memory map. However, if there are multiple
M-mode firmware ranges, then this will miss those extra ranges
allowing the OS to access the memory and hit a fault.

This issue is exposed since recent opensbi started creating
two ranges for text and data.

Fix this by searching for all reserved memory nodes and marking
them as reserved in the EFI memory map.

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Andrei Warkentin <andrei.warkentin@intel.com>
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com>
2023-03-28 05:04:34 +00:00
..
Library OvmfPkg/RiscVVirt: Add VirtNorFlashPlatformLib library 2023-02-16 05:53:28 +00:00
PciCpuIo2Dxe OvmfPkg/RiscVVirt: Add PciCpuIo2Dxe module 2023-02-16 05:53:28 +00:00
Sec OvmfPkg/RiscVVirt: Support multiple reserved memory ranges 2023-03-28 05:04:34 +00:00
RiscVVirt.dsc.inc OvmfPkg/RiscVVirt: Add build files for Qemu Virt platform 2023-02-16 05:53:28 +00:00
RiscVVirt.fdf.inc OvmfPkg/RiscVVirt: Add build files for Qemu Virt platform 2023-02-16 05:53:28 +00:00
RiscVVirtQemu.dsc OvmfPkg: RiscVVirt: add SATA support 2023-03-08 18:10:34 +00:00
RiscVVirtQemu.fdf OvmfPkg: RiscVVirt: add SATA support 2023-03-08 18:10:34 +00:00
VarStore.fdf.inc OvmfPkg/RiscVVirt: Add build files for Qemu Virt platform 2023-02-16 05:53:28 +00:00