spapr: allocate the interrupt thread context under the CPU core
commit1a937ad7e7a1b4eef37c967cbaeeda5ec5b90855
authorCédric Le Goater <clg@kaod.org>
Tue, 11 Dec 2018 22:38:15 +0000 (11 23:38 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 20 Dec 2018 22:39:13 +0000 (21 09:39 +1100)
tree161ed49c070a281d4f38e698bcde246fe44191c9
parent6e21de4a50fa1caf163e12a6c90424b750119f96
spapr: allocate the interrupt thread context under the CPU core

Each interrupt mode has its own specific interrupt presenter object,
that we store under the CPU object, one for XICS and one for XIVE.

Extend the sPAPR IRQ backend with a new handler to support them both.

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