KVM: Convert comment into an assertion in kvm_io_bus_register_dev()
authorMarc Zyngier <maz@kernel.org>
Thu, 7 Dec 2023 15:12:01 +0000 (15:12 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Tue, 12 Dec 2023 07:11:38 +0000 (07:11 +0000)
commitb1a39a718db44ecb18c2a99a11e15f6eedc14c53
tree4d9cdec256fc15fe413f34a1a2f8ee41083a7178
parent6bef365e310a5cd4b6e95fbb80b44725fce97e37
KVM: Convert comment into an assertion in kvm_io_bus_register_dev()

Instead of having a comment indicating the need to hold slots_lock
when calling kvm_io_bus_register_dev(), make it explicit with
a lockdep assertion.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231207151201.3028710-6-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
virt/kvm/kvm_main.c