qemu/hw/intc
Edgar E. Iglesias 7175a562f1 hw/intc/arm_gic: Fix deactivation of SPI lines
Julien reported that he has seen strange behaviour when running
Xen on QEMU using GICv2. When Xen migrates a guest's vCPU from
one pCPU to another while the vCPU is handling an interrupt, the
guest is unable to properly deactivate interrupts.

Looking at it a little closer, our GICv2 model treats
deactivation of SPI lines as if they were PPI's, i.e banked per
CPU core. The state for active interrupts should only be banked
for PPI lines, not for SPI lines.

Make deactivation of SPI lines unbanked, similar to how we
handle writes to GICD_ICACTIVER.

Reported-by: Julien Grall <julien@xen.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Message-id: 20240605143044.2029444-2-edgar.iglesias@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2024-06-21 14:01:58 +01:00
..
allwinner-a10-pic.c
apic.c
apic_common.c
arm_gic.c hw/intc/arm_gic: Fix writes to GICD_ITARGETSRn 2024-05-30 13:21:06 +01:00
arm_gic_common.c
arm_gic_kvm.c
arm_gicv2m.c
arm_gicv3.c
arm_gicv3_common.c
arm_gicv3_cpuif.c
arm_gicv3_cpuif_common.c
arm_gicv3_dist.c
arm_gicv3_its.c
arm_gicv3_its_common.c
arm_gicv3_its_kvm.c
arm_gicv3_kvm.c
arm_gicv3_redist.c
armv7m_nvic.c
aspeed_intc.c aspeed/intc: Add AST2700 support 2024-06-16 21:08:54 +02:00
aspeed_vic.c
bcm2835_ic.c
bcm2836_control.c
etraxfs_pic.c
exynos4210_combiner.c
exynos4210_gic.c
gic_internal.h hw/intc/arm_gic: Fix deactivation of SPI lines 2024-06-21 14:01:58 +01:00
gicv3_internal.h
goldfish_pic.c hw/intc: Avoid using Monitor in INTERRUPT_STATS_PROVIDER::print_info() 2024-06-19 12:40:49 +02:00
grlib_irqmp.c
heathrow_pic.c
i8259.c
i8259_common.c hw/intc: Avoid using Monitor in INTERRUPT_STATS_PROVIDER::print_info() 2024-06-19 12:40:49 +02:00
imx_avic.c
imx_gpcv2.c
intc.c
ioapic-stub.c
ioapic.c
ioapic_common.c hw/intc: Avoid using Monitor in INTERRUPT_STATS_PROVIDER::print_info() 2024-06-19 12:40:49 +02:00
ioapic_internal.h
Kconfig
kvm_irqcount.c
loongarch_extioi.c hw/intc/loongarch_extioi: Add extioi virt extension definition 2024-06-06 11:56:45 +08:00
loongarch_pch_msi.c
loongarch_pch_pic.c
loongson_ipi.c hw/intc/loongson_ipi: Replace ipi_getcpu with cpu_by_arch_id 2024-06-19 12:42:03 +02:00
loongson_liointc.c
m68k_irqc.c hw/intc: Avoid using Monitor in INTERRUPT_STATS_PROVIDER::print_info() 2024-06-19 12:40:49 +02:00
meson.build aspeed/intc: Add AST2700 support 2024-06-16 21:08:54 +02:00
mips_gic.c
omap_intc.c
ompic.c
openpic.c
openpic_kvm.c
pl190.c
pnv_xive.c hw/ppc: Avoid using Monitor in pnv_xive_pic_print_info() 2024-06-19 12:40:49 +02:00
pnv_xive2.c hw/ppc: Avoid using Monitor in pnv_xive2_pic_print_info() 2024-06-19 12:40:49 +02:00
pnv_xive2_regs.h
pnv_xive_regs.h
ppc-uic.c
realview_gic.c
riscv_aclint.c
riscv_aplic.c hw/intc/riscv_aplic: APLICs should add child earlier than realize 2024-06-03 11:12:11 +10:00
riscv_imsic.c
rx_icu.c
s390_flic.c hw/intc/s390_flic: Fix crash that occurs when saving the machine state 2024-05-17 11:18:32 +02:00
s390_flic_kvm.c
sh_intc.c
sifive_plic.c
slavio_intctl.c hw/intc: Avoid using Monitor in INTERRUPT_STATS_PROVIDER::print_info() 2024-06-19 12:40:49 +02:00
spapr_xive.c hw/ppc: Avoid using Monitor in SpaprInterruptControllerClass::print_info() 2024-06-19 12:40:49 +02:00
spapr_xive_kvm.c
trace-events aspeed/intc: Add AST2700 support 2024-06-16 21:08:54 +02:00
trace.h
vgic_common.h
xics.c hw/ppc: Avoid using Monitor in ics_pic_print_info() 2024-06-19 12:40:49 +02:00
xics_kvm.c
xics_pnv.c
xics_spapr.c hw/ppc: Avoid using Monitor in SpaprInterruptControllerClass::print_info() 2024-06-19 12:40:49 +02:00
xilinx_intc.c
xive.c hw/ppc: Avoid using Monitor in xive_end_eas_pic_print_info() 2024-06-19 12:40:49 +02:00
xive2.c hw/ppc: Avoid using Monitor in xive2_end_pic_print_info() 2024-06-19 12:40:49 +02:00
xlnx-pmu-iomod-intc.c
xlnx-zynqmp-ipi.c