qemu-patch-raspberry4/hw/intc
Bharata B Rao a45863bda9 xics_kvm: Don't enable KVM_CAP_IRQ_XICS if already enabled
When supporting CPU hot removal by parking the vCPU fd and reusing
it during hotplug again, there can be cases where we try to reenable
KVM_CAP_IRQ_XICS CAP for the vCPU for which it was already enabled.
Introduce a boolean member in ICPState to track this and don't
reenable the CAP if it was already enabled earlier.

Re-enabling this CAP should ideally work, but currently it results in
kernel trying to create and associate ICP with this vCPU and that
fails since there is already an ICP associated with it. Hence this
patch is needed to work around this problem in the kernel.

This change allows CPU hot removal to work for sPAPR.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
2015-07-07 17:44:52 +02:00
..
allwinner-a10-pic.c
apic.c
apic_common.c
arm_gic.c
arm_gic_common.c
arm_gic_kvm.c
arm_gicv2m.c
armv7m_nvic.c
etraxfs_pic.c
exynos4210_combiner.c
exynos4210_gic.c
gic_internal.h
grlib_irqmp.c
heathrow_pic.c
i8259.c
i8259_common.c
imx_avic.c
ioapic.c
ioapic_common.c
lm32_pic.c
Makefile.objs
omap_intc.c
openpic.c
openpic_kvm.c
pl190.c
puv3_intc.c
realview_gic.c
s390_flic.c
s390_flic_kvm.c
sh_intc.c
slavio_intctl.c
xics.c
xics_kvm.c xics_kvm: Don't enable KVM_CAP_IRQ_XICS if already enabled 2015-07-07 17:44:52 +02:00
xilinx_intc.c