KVM: arm/arm64: VGIC/ITS: Promote irq_lock() in update_affinity
authorAndre Przywara <[email protected]>
Fri, 11 May 2018 14:20:13 +0000 (15:20 +0100)
committerPaolo Bonzini <[email protected]>
Tue, 15 May 2018 11:36:44 +0000 (13:36 +0200)
commit9c4188762f7fee032abf8451fd9865a9abfc5516
tree9410dcbf4b080aed3e6abba8d4e209520092f869
parent388d4359680b56dba82fe2ffca05871e9fd2b73e
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: [email protected]
Fixes: 08c9fd042117 ("KVM: arm/arm64: vITS: Add a helper to update the affinity of an LPI")
Reported-by: Jan Glauber <[email protected]>
Signed-off-by: Andre Przywara <[email protected]>
Acked-by: Christoffer Dall <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
virt/kvm/arm/vgic/vgic-its.c