summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc/spapr.h
diff options
context:
space:
mode:
authorDavid Gibson2019-10-18 12:25:49 +0200
committerDavid Gibson2019-12-17 00:39:48 +0100
commit97b32a6afa78ae68fb16344b9a144b6f433f42a2 (patch)
tree9f3bbf7bd430726aee7e6177c3aca4daa9492527 /include/hw/ppc/spapr.h
parentspapr: Don't trigger a CAS reboot for XICS/XIVE mode changeover (diff)
downloadqemu-97b32a6afa78ae68fb16344b9a144b6f433f42a2.tar.gz
qemu-97b32a6afa78ae68fb16344b9a144b6f433f42a2.tar.xz
qemu-97b32a6afa78ae68fb16344b9a144b6f433f42a2.zip
spapr: Improve handling of fdt buffer size
Previously, spapr_build_fdt() constructed the device tree in a fixed buffer of size FDT_MAX_SIZE. This is a bit inflexible, but more importantly it's awkward for the case where we use it during CAS. In that case the guest firmware supplies a buffer and we have to awkwardly check that what we generated fits into it afterwards, after doing a lot of size checks during spapr_build_fdt(). Simplify this by having spapr_build_fdt() take a 'space' parameter. For the CAS case, we pass in the buffer size provided by SLOF, for the machine init case, we continue to pass FDT_MAX_SIZE. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Cedric Le Goater <clg@fr.ibm.com> Reviewed-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'include/hw/ppc/spapr.h')
0 files changed, 0 insertions, 0 deletions