| Subject | Re: [PATCH v2 24/28] KVM: x86/mmu: Allow zap gfn range to operate under the mmu read lock | From | Paolo Bonzini <> | Date | Wed, 3 Feb 2021 12:26:50 +0100 |
| |
On 02/02/21 19:57, Ben Gardon wrote: > +#ifdef CONFIG_LOCKDEP > + if (shared) > + lockdep_assert_held_read(&kvm->mmu_lock); > + else > + lockdep_assert_held_write(&kvm->mmu_lock); > +#endif /* CONFIG_LOCKDEP */
Also, there's no need for the #ifdef here. Do we want a helper kvm_lockdep_assert_mmu_lock_held(struct kvm *kvm, bool shared)?
Paolo
|