Skip to content

Commit c38b840

Browse files
jpbruckerMarc Zyngier
authored andcommitted
KVM: arm64: vgic: Fix locking comment
It is now config_lock that must be held, not kvm lock. Replace the comment with a lockdep annotation. Fixes: f003277 ("KVM: arm64: Use config_lock to protect vgic state") Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Reviewed-by: Oliver Upton <oliver.upton@linux.dev> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230518100914.2837292-4-jean-philippe@linaro.org
1 parent 9cf2f84 commit c38b840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm64/kvm/vgic/vgic-v4.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,14 @@ static void vgic_v4_disable_vsgis(struct kvm_vcpu *vcpu)
184184
}
185185
}
186186

187-
/* Must be called with the kvm lock held */
188187
void vgic_v4_configure_vsgis(struct kvm *kvm)
189188
{
190189
struct vgic_dist *dist = &kvm->arch.vgic;
191190
struct kvm_vcpu *vcpu;
192191
unsigned long i;
193192

193+
lockdep_assert_held(&kvm->arch.config_lock);
194+
194195
kvm_arm_halt_guest(kvm);
195196

196197
kvm_for_each_vcpu(i, vcpu, kvm) {

0 commit comments

Comments
 (0)