]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr.c
pseries: Move adding of fdt reserve map entries
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 20 Oct 2016 04:34:59 +0000 (15:34 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:38:25 +0000 (09:38 +1100)
commitcf6e522390126bdd20406481f3df79c194a431bd
tree2310425edc3060ac5b7cebc105da236355fe996f
parenta19f7fb0456b3d1329a2086d81418a49c1eae9b9
pseries: Move adding of fdt reserve map entries

The flattened device tree passed to pseries guests contains a list of
reserved memory areas.  Currently we construct this list early in
spapr_create_fdt_skel() as we sequentially write the fdt.

This will be inconvenient for upcoming cleanups, so this patch moves
the reserve map changes to the end of fdt construction.  This changes
fdt_add_reservemap_entry() calls - which work when writing the fdt
sequentially to fdt_add_mem_rsv() calls used when altering the fdt in
random access mode.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/spapr.c