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>
));\r
}\r
}\r
+ } else if (E820Entry.Type == EfiAcpiAddressRangeReserved) {\r
+ if (AddHighHob) {\r
+ DEBUG ((\r
+ DEBUG_INFO,\r
+ "%a: Reserved: Base=0x%Lx Length=0x%Lx\n",\r
+ __FUNCTION__,\r
+ E820Entry.BaseAddr,\r
+ E820Entry.Length\r
+ ));\r
+ BuildResourceDescriptorHob (\r
+ EFI_RESOURCE_MEMORY_RESERVED,\r
+ 0,\r
+ E820Entry.BaseAddr,\r
+ E820Entry.Length\r
+ );\r
+ }\r
}\r
}\r
\r