]> git.ipfire.org Git - people/arne_f/kernel.git/commit
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:14:34 +0000 (19:14 +0800)
commitd29e6215e5ab9a6b64b5cee57598ae8ec05666a1
tree838e6c4835f7f91bd9a4db9aa52034cb4393a2bb
parent9d89c20f3b8f82ddb1d7ef63748ad74691549e80
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