KVM: arm64: vgic: Ensure that slots_lock is held in vgic_register_all_redist_iodevs()
authorMarc Zyngier <maz@kernel.org>
Thu, 7 Dec 2023 15:12:00 +0000 (15:12 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 12 Dec 2023 07:11:38 +0000 (07:11 +0000)
commit6bef365e310a5cd4b6e95fbb80b44725fce97e37
tree4770e740a9cbc8bd3fd041705eb4f7c420707de4
parent02e3858f08faabab9503ae2911cf7c7e27702257
KVM: arm64: vgic: Ensure that slots_lock is held in vgic_register_all_redist_iodevs()

Although we implicitly depend on slots_lock being held when registering
IO devices with the IO bus infrastructure, we don't enforce this
requirement. Make it explicit.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231207151201.3028710-5-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/vgic/vgic-mmio-v3.c