lkml.org 
[lkml]   [2021]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2 24/28] KVM: x86/mmu: Allow zap gfn range to operate under the mmu read lock
From
Date
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

\
 
 \ /
  Last update: 2021-02-03 12:31    [W:0.237 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site