Greg Kurz bb2bdd812e spapr: add hotplug hooks for PHB hotplug
Hotplugging PHBs is a machine-level operation, but PHBs reside on the
main system bus, so we register spapr machine as the handler for the
main system bus.

Provide the usual pre-plug, plug and unplug-request handlers.

Move the checking of the PHB index to the pre-plug handler. It is okay
to do that and assert in the realize function because the pre-plug
handler is always called, even for the oldest machine types we support.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
(Fixed interrupt controller phandle in "interrupt-map" and
 TCE table size in "ibm,dma-window" FDT fragment, Greg Kurz)
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <155059672926.1466090.13612804072190051439.stgit@bahia.lab.toulouse-stg.fr.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2019-02-26 09:21:25 +11:00
..
2019-01-30 10:16:58 +01:00
2016-10-04 13:28:07 +01:00
2017-01-27 18:07:59 +01:00
2019-01-25 14:52:11 -05:00
2018-12-11 15:45:22 -02:00
2016-05-18 15:04:27 +03:00
2018-12-11 15:45:22 -02:00
2018-12-11 15:45:22 -02:00
2013-04-08 18:13:10 +02:00
2018-12-11 15:45:22 -02:00
2019-02-05 10:58:33 -05:00
2018-02-09 05:05:11 +01:00
2019-02-18 11:25:43 +01:00
2019-01-11 15:46:55 +01:00
2019-02-22 07:25:04 +01:00
2017-01-27 18:07:59 +01:00
2019-02-05 16:50:16 +01:00
2018-12-11 15:45:22 -02:00
2017-06-01 18:49:22 +02:00
2018-12-11 15:45:22 -02:00
2013-04-08 18:13:10 +02:00
2018-12-11 15:45:22 -02:00