KVM: arm/arm64: Let vcpu thread modify its own active state
authorJintack Lim <jintack@cs.columbia.edu>
Mon, 6 Mar 2017 13:42:37 +0000 (05:42 -0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 7 Mar 2017 14:48:16 +0000 (14:48 +0000)
commit370a0ec1819990f8e2a93df7cc9c0146980ed45f
treec511955854887f5b6d7eb93b2d966d28951f2a2e
parent4dfc050571523ac2bc02cbf948dd47621f7dd83f
KVM: arm/arm64: Let vcpu thread modify its own active state

Currently, if a vcpu thread tries to change the active state of an
interrupt which is already on the same vcpu's AP list, it will loop
forever. Since the VGIC mmio handler is called after a vcpu has
already synced back the LR state to the struct vgic_irq, we can just
let it proceed safely.

Cc: stable@vger.kernel.org
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Jintack Lim <jintack@cs.columbia.edu>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-mmio.c