qemu-patch-raspberry4/hw/i386
Gerd Hoffmann 0624c7f916 e820: pass high memory too.
We have a fw_cfg entry to pass e820 entries from qemu to the firmware.
Today it's used to pass reservations only.  This patch makes qemu pass
entries for RAM too.

This allows to pass RAM sizes larger than 1TB to the firmware and it
will also allow to pass non-contignous memory ramges should we decide
to implement that some day, say for our virtual numa nodes.

Obviously this needs some extra care to not break existing firware.

SeaBIOS loads the entries and happily adds them without looking at the
type.  Which is problematic for memory below 4g as this will overwrite
reservations added for bios memory etc.  For memory above 4g it works
just fine, seabios will merge the entry derived from cmos with the one
loaded from fw_cfg.

OVMF doesn't look at the fw_cfg e820 table.
coreboot doesn't look at the fw_cfg e820 table.

Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-By: Igor Mammedov <imammedo@redhat.com>
2013-10-17 13:06:11 +02:00
..
kvm kvm: Fix compiler warning (clang) 2013-09-20 20:11:32 +04:00
kvmvapic.c kvmvapic: Clear also physical ROM address when entering INACTIVE state 2013-09-20 12:37:52 +02:00
Makefile.objs pc_sysfw: do not make it a device anymore 2013-08-12 09:31:14 -05:00
multiboot.c multiboot: Calculate upper_mem in the ROM 2013-06-28 14:01:52 -05:00
multiboot.h refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
pc.c e820: pass high memory too. 2013-10-17 13:06:11 +02:00
pc_piix.c xen: Enable cpu-hotplug on xenfv machine. 2013-09-25 16:43:12 +00:00
pc_q35.c Merge remote-tracking branch 'sstabellini/xen-2013-09-09' into staging 2013-09-11 14:45:57 -05:00
pc_sysfw.c pc_sysfw: Fix ISA BIOS init for ridiculously big flash 2013-09-12 11:45:32 -05:00
smbios.c smbios: Factor out smbios_maybe_add_str() 2013-09-28 23:49:39 +03:00
xen_domainbuild.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
xen_domainbuild.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
xen_machine_pv.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00