]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr.c
pseries: Split device tree construction from device tree load
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 25 Oct 2016 00:51:33 +0000 (11:51 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:38:25 +0000 (09:38 +1100)
commit997b6cfc3d13aa145fcdbf294521e581d6617bde
tree211c0e7f35c0b2e329a0fdd9d571cfead428beb9
parent37ad52ba7ae415e7a78676aa7bb5e9f4fc6c8030
pseries: Split device tree construction from device tree load

spapr_finalize_fdt() both finishes building the device tree for the guest
and loads it into guest memory.  For future cleanups, it's going to be
more convenient to do these two things separately.  The loading portion is
pretty trivial, so we move it inline into the caller, ppc_spapr_reset().

We also rename spapr_finalize_fdt(), because the current name is going to
become inaccurate.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
hw/ppc/spapr.c
hw/ppc/spapr_cpu_core.c