Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 71fd87e98a3d68dffe2f37ec1bdc61732c01597a
      
https://github.com/tianocore/edk2/commit/71fd87e98a3d68dffe2f37ec1bdc61732c01597a
  Author: Sunil V L <suni...@ventanamicro.com>
  Date:   2023-03-28 (Tue, 28 Mar 2023)

  Changed paths:
    M OvmfPkg/RiscVVirt/Sec/Memory.c

  Log Message:
  -----------
  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+tianoc...@kernel.org>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Jordan Justen <jordan.l.jus...@intel.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: Andrei Warkentin <andrei.warken...@intel.com>
Signed-off-by: Sunil V L <suni...@ventanamicro.com>
Reviewed-by: Andrei Warkentin <andrei.warken...@intel.com>




_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to