diff options
author | David Gibson | 2019-10-18 12:25:49 +0200 |
---|---|---|
committer | David Gibson | 2019-12-17 00:39:48 +0100 |
commit | 97b32a6afa78ae68fb16344b9a144b6f433f42a2 (patch) | |
tree | 9f3bbf7bd430726aee7e6177c3aca4daa9492527 /include/hw/ppc/spapr.h | |
parent | spapr: Don't trigger a CAS reboot for XICS/XIVE mode changeover (diff) | |
download | qemu-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