audk/OvmfPkg/RiscVVirt/Sec
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
..
Cpu.c OvmfPkg/RiscVVirt: Add SEC module 2023-02-16 05:53:28 +00:00
Memory.c OvmfPkg/RiscVVirt: Support multiple reserved memory ranges 2023-03-28 05:04:34 +00:00
Platform.c OvmfPkg/RiscVVirt: Add SEC module 2023-02-16 05:53:28 +00:00
SecEntry.S OvmfPkg/RiscVVirt: Add SEC module 2023-02-16 05:53:28 +00:00
SecMain.c OvmfPkg/RiscVVirt: Add Stack HOB 2023-03-01 15:08:07 +00:00
SecMain.h OvmfPkg/RiscVVirt: Add SEC module 2023-02-16 05:53:28 +00:00
SecMain.inf OvmfPkg/RiscVVirt: Add SEC module 2023-02-16 05:53:28 +00:00