diff options
author | Cédric Le Goater | 2018-12-11 23:38:16 +0100 |
---|---|---|
committer | David Gibson | 2018-12-20 23:39:13 +0100 |
commit | 1c53b06c0309104f30ca2c5e1d1e89ddc38de080 (patch) | |
tree | 52f638547ccfffe79e2610867d5a27cafe8f123e /include/hw/ppc | |
parent | spapr: allocate the interrupt thread context under the CPU core (diff) | |
download | qemu-1c53b06c0309104f30ca2c5e1d1e89ddc38de080.tar.gz qemu-1c53b06c0309104f30ca2c5e1d1e89ddc38de080.tar.xz qemu-1c53b06c0309104f30ca2c5e1d1e89ddc38de080.zip |
spapr: extend the sPAPR IRQ backend for XICS migration
Introduce a new sPAPR IRQ handler to handle resend after migration
when the machine is using a KVM XICS interrupt controller model.
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>
Diffstat (limited to 'include/hw/ppc')
-rw-r--r-- | include/hw/ppc/spapr_irq.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr_irq.h b/include/hw/ppc/spapr_irq.h index 13db0428ab..84a25ffb6c 100644 --- a/include/hw/ppc/spapr_irq.h +++ b/include/hw/ppc/spapr_irq.h @@ -43,6 +43,7 @@ typedef struct sPAPRIrq { void *fdt, uint32_t phandle); Object *(*cpu_intc_create)(sPAPRMachineState *spapr, Object *cpu, Error **errp); + int (*post_load)(sPAPRMachineState *spapr, int version_id); } sPAPRIrq; extern sPAPRIrq spapr_irq_xics; @@ -53,6 +54,7 @@ void spapr_irq_init(sPAPRMachineState *spapr, Error **errp); int spapr_irq_claim(sPAPRMachineState *spapr, int irq, bool lsi, Error **errp); void spapr_irq_free(sPAPRMachineState *spapr, int irq, int num); qemu_irq spapr_qirq(sPAPRMachineState *spapr, int irq); +int spapr_irq_post_load(sPAPRMachineState *spapr, int version_id); /* * XICS legacy routines |