]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PlatformInitLib: pass through reservations from qemu
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Dec 2022 05:32:15 +0000 (06:32 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 23 Dec 2022 11:53:40 +0000 (11:53 +0000)
commitbf65d7ee8842a93116534f727abcad235dd3e233
treeb5c4af68da8ac320f705485abd7768ce57c3c588
parent16acacf24c2c1fa2eff9148ae8ec952d74e3ab03
OvmfPkg/PlatformInitLib: pass through reservations from qemu

qemu uses the etc/e820 fw_cfg file not only for memory, but
also for reservations.  Handle reservations by adding resource
descriptor hobs for them.

A typical qemu configuration has a small reservation between
lapic and flash:

  # sudo cat /proc/iomem
  [ ... ]
  fee00000-fee00fff : Local APIC
  feffc000-feffffff : Reserved          <= HERE
  ffc00000-ffffffff : Reserved
  [ ... ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
OvmfPkg/Library/PlatformInitLib/MemDetect.c