]> git.baikalelectronics.ru Git - 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)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 May 2018 11:36:44 +0000 (13:36 +0200)
commit7b6efa5bf5afad2bd0c0127df36710d2ffc4e5e5
tree9410dcbf4b080aed3e6abba8d4e209520092f869
parent48c8ebdfad15c87362de8b804fd8ab63d543cfb4
KVM: arm/arm64: VGIC/ITS: Promote irq_lock() in update_affinity

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: e6658efd7b32 ("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>
virt/kvm/arm/vgic/vgic-its.c