When SaSbQemu platform is configured with multi memory nodes,like numa architecture, os will ignore any memory node in the device tree except the first one.The kernel reads UEFI memory map for memory information when booting via UEFI.However UEFI only allocates the first memory node memory space for SbsaQemu platform, in this scenario we can full use of HighMemDxe to add memory spaces for other memory nodes.
Changes in V2: - Modify the the execution order of PlatformPeiLib moodule after memory initialization
xiongyining1480 (3): SbsaQemu: Use HighMemDxe provided by OvmfPkg SbsaQemu: Use FdtClientDxe provided by EmbeddedPkg SbsaQemu: Add PlatformPeiLib library
Platform/Qemu/SbsaQemu/SbsaQemu.dsc | 8 ++- Platform/Qemu/SbsaQemu/SbsaQemu.fdf | 2 + .../Library/PlatformPeiLib/PlatformPeiLib.c | 63 +++++++++++++++++++ .../Library/PlatformPeiLib/PlatformPeiLib.inf | 41 ++++++++++++ 4 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 Silicon/Qemu/SbsaQemu/Library/PlatformPeiLib/PlatformPeiLib.c create mode 100644 Silicon/Qemu/SbsaQemu/Library/PlatformPeiLib/PlatformPeiLib.inf