]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr.c
pseries: Consolidate construction of /vdevice device tree node
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 20 Oct 2016 05:01:17 +0000 (16:01 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:38:26 +0000 (09:38 +1100)
commitbf5a6696ba95ee6efa29489dd7d53b6fbcf18469
tree7848a2114f7144c9323253fe0aa0d19a3a78dccf
parentfca5f2dc6ca03afa78a11835a9a6b6d223fa4575
pseries: Consolidate construction of /vdevice device tree node

Construction of the /vdevice node (and its children) is divided between
spapr_create_fdt_skel() (at init time), which creates the base node, and
spapr_populate_vdevice() (at reset time) which creates the nodes for each
individual virtual device.

This consolidates both into a single function called from
spapr_build_fdt().

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
hw/ppc/spapr_vio.c
include/hw/ppc/spapr_vio.h