]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 20 Mar 2017 11:24:55 +0000 (05:24 -0600)
commitdfc298b956a8597e360265ca1041a63bd604f6ad
tree4c5d05ae40f11fd62c4c90b71960868cfcef1fe0
parent162aedd975600922584f2551740b322b21c24a46
KVM: arm/arm64: Let vcpu thread modify its own active state

BugLink: http://bugs.launchpad.net/bugs/1674288
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
virt/kvm/arm/vgic/vgic-mmio.c