]> git.itanic.dy.fi Git - linux-stable/commit
KVM: arm/arm64: VGIC/ITS: Promote irq_lock() in update_affinity
authorAndre Przywara <andre.przywara@arm.com>
Fri, 11 May 2018 14:20:13 +0000 (15:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 May 2018 16:56:20 +0000 (18:56 +0200)
commitfe4e206dd92c83200493cfa1418a73b8fb7afc4c
tree95d7b4719c2ed938db4dde52537353456fa1bada
parent9cea0befe253f7c0bce108a36ee386a2f570f325
KVM: arm/arm64: VGIC/ITS: Promote irq_lock() in update_affinity

commit 9c4188762f7fee032abf8451fd9865a9abfc5516 upstream.

Apparently the development of update_affinity() overlapped with the
promotion of irq_lock to be _irqsave, so the patch didn't convert this
lock over. This will make lockdep complain.

Fix this by disabling IRQs around the lock.

Cc: stable@vger.kernel.org
Fixes: 08c9fd042117 ("KVM: arm/arm64: vITS: Add a helper to update the affinity of an LPI")
Reported-by: Jan Glauber <jan.glauber@caviumnetworks.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/arm/vgic/vgic-its.c