Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 158c1b614bb01a1e4cf72096dd54b749f1b702ca
      
https://github.com/tianocore/edk2/commit/158c1b614bb01a1e4cf72096dd54b749f1b702ca
  Author: Sami Mujawar <[email protected]>
  Date:   2026-08-28 (Fri, 28 Aug 2026)

  Changed paths:
    M ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c
    M ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.inf
    M ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf

  Log Message:
  -----------
  ArmVirtPkg: Refactor virtual memory mapping for qemu guest firmware

Refactor the memory mapping configuration for qemu Guest VM to
only setup the memory map for the System Memory, FV and the Serial
Port.

The memory mappings for the remaining devices are expected to be
configured by the respective drivers, this could be done as part
of the DXE drivers itself or using a Probe Library that adds the
device memory regions to the memory map.

The only special cases that remain are the System Memory, FV and
the Serial Port for which the memory mappings are created by the
QemuVirtMemInfoLib. The memory mapping for the Serial port
is added as it is utilised for logging before the DXE driver
is loaded.

Signed-off-by: Sami Mujawar <[email protected]>


  Commit: aeed0402046772c26fdac55a20541e9a3c4780a5
      
https://github.com/tianocore/edk2/commit/aeed0402046772c26fdac55a20541e9a3c4780a5
  Author: Sami Mujawar <[email protected]>
  Date:   2026-08-28 (Fri, 28 Aug 2026)

  Changed paths:
    M ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoLib.c

  Log Message:
  -----------
  ArmVirtPkg: Map QEMU fw_cfg MMIO region in PEI

Get the QEMU fw_cfg MMIO range from the device tree and add it
to the PEI virtual memory map. This ensures the fw_cfg selector
and data registers are mapped as device memory before
PlatformPei initialises the PEIM instance of QemuFwCfgLib.

Without this mapping, accessing the fw_cfg selector can trigger a
synchronous exception during PEI on ArmVirtQemu.

Note: The PlatformPeiLib calls QemuFwCfgGetAsString() to read
the "opt/org.tianocore/DebugLevel", which results in the
QemuFwCfgMmioPeiLib constructor QemuFwCfgInitialize() being
invoked that accesses the fw_cfg MMIO range.

Signed-off-by: Sami Mujawar <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/f5e1b45e08e7...aeed04020467

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to