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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Mar 2017 11:18:43 +0000 (19:18 +0800)
commit523379cd6b655118f5823fdbc11064bd5e88b908
treed0bc02dd4d8ec9ce2d1beb7c7d38f75416b0e8d3
parent1f9175b9ee7ca23995e377a05c3d93ac9457ab9c
KVM: arm/arm64: Let vcpu thread modify its own active state

commit 370a0ec1819990f8e2a93df7cc9c0146980ed45f upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/arm/vgic/vgic-mmio.c