spapr_pci: create DRConnectors for each PCI slot during PHB realize
commit62083979b0471ac07da6d94944bf12a9b18baa1f
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 7 May 2015 05:33:53 +0000 (7 15:33 +1000)
committerAlexander Graf <agraf@suse.de>
Wed, 3 Jun 2015 21:56:54 +0000 (3 23:56 +0200)
treebd880e30936b1e086f645e458235d289b672dec3
parent7619c7b00c90a39243f1229facde8c53a8fba921
spapr_pci: create DRConnectors for each PCI slot during PHB realize

These will be used to support hotplug/unplug of PCI devices to the PCI
bus associated with a particular PHB.

We also set up device-tree properties in each PHBs initial FDT to
describe the DRCs associated with them. This advertises to guests that
each PHB is DR-capable device with physical hotpluggable slots, each
managed by the corresponding DRC. This is necessary for allowing
hotplugging of devices to it later via bus rescan or guest rpaphp
hotplug module.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr_pci.c