]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:27:45 +0000 (12:27 +0200)
commit38f245d4ea24f942c9dffcd56ec6871536cbd7d1
treeed10679b6a8c4ad522dcc2b5bd12317d96c8640b
parent7755559d79f03da8a0573135bb74087dc7a63b18
KVM: arm/arm64: VGIC/ITS: Promote irq_lock() in update_affinity

BugLink: http://bugs.launchpad.net/bugs/1782846
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
virt/kvm/arm/vgic/vgic-its.c