spapr, xics, xive: Move SpaprIrq::post_load hook to backends
commit605994e5b7d17dcc275465b4f89816d29105b238
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 27 Sep 2019 00:53:53 +0000 (27 10:53 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Oct 2019 22:36:55 +0000 (24 09:36 +1100)
tree156f792b7c6caa50eb4db4320e6db8b546a10a67
parent567192d486cc3073eb097246acc98b200fa3d198
spapr, xics, xive: Move SpaprIrq::post_load hook to backends

The remaining logic in the post_load hook really belongs to the interrupt
controller backends, and just needs to be called on the active controller
(after the active controller is set to the right thing based on the
incoming migration in the generic spapr_irq_post_load() logic).

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