spapr_pci: enable basic hotplug operations
commit7454c7af91bdd60216e2b6eead827c012bb4d0d0
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 7 May 2015 05:33:55 +0000 (7 15:33 +1000)
committerAlexander Graf <agraf@suse.de>
Wed, 3 Jun 2015 21:56:54 +0000 (3 23:56 +0200)
tree1bfcf878b310c11ef86da1832935d2d6fae6ad35
parentcf8c704d5a06e7b8327c65d19d0c342dc23fff84
spapr_pci: enable basic hotplug operations

This enables hotplug of PCI devices to a PHB. Upon hotplug we
generate the OF-nodes required by PAPR specification and
IEEE 1275-1994 "PCI Bus Binding to Open Firmware" for the
device.

We associate the corresponding FDT for these nodes with the DRC
corresponding to the slot, which will be fetched via
ibm,configure-connector RTAS calls by the guest as described by PAPR
specification.

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