spapr, xics, xive: Move irq claim and free from SpaprIrq to SpaprInterruptController
commit0b0e52b1317f2a51704cbf32047864869763dea3
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 26 Sep 2019 04:31:13 +0000 (26 14:31 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Oct 2019 22:36:55 +0000 (24 09:36 +1100)
treef9f61d37e83f088f2b13efb52a6296d83a1a3409
parentebd6be089b4c87554362b516c3ba530217d3f3db
spapr, xics, xive: Move irq claim and free from SpaprIrq to SpaprInterruptController

These methods, like cpu_intc_create, really belong to the interrupt
controller, but need to be called on all possible intcs.

Like cpu_intc_create, therefore, make them methods on the intc and
always call it for all existing intcs.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
hw/intc/spapr_xive.c
hw/intc/xics_spapr.c
hw/ppc/spapr_irq.c
include/hw/ppc/spapr_irq.h
include/hw/ppc/spapr_xive.h