spapr: Move creation of ibm,dynamic-reconfiguration-memory dt node
commitfa523f0dd3c5abae3f57cc4d174e2a2c61204518
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 22 Jan 2020 04:46:35 +0000 (22 15:46 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 17 Mar 2020 04:08:50 +0000 (17 15:08 +1100)
tree15a503ad5ea13f74b23b221492530010b675bb50
parent4dba87221936e18111959344b05ec3384e50fed0
spapr: Move creation of ibm,dynamic-reconfiguration-memory dt node

Currently this node with information about hotpluggable memory is created
from spapr_dt_cas_updates().  But that's just a hangover from when we
created it only as a diff to the device tree at CAS time.  Now that we
fully rebuild the DT as CAS time, it makes more sense to create this along
with the rest of the memory information in the device tree.

So, move it to spapr_populate_memory().  The patch is huge, but it's nearly
all just code motion.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
hw/ppc/spapr.c