diff options
author | Like Xu <[email protected]> | 2023-06-27 12:26:39 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2023-08-31 13:48:38 -0400 |
commit | 91303f800e76517d1e96d47dec290c5d5dbf1230 (patch) | |
tree | 557bd75f87cef78c2e7c6c26ded504e919e26f9d /net/lapb/lapb_iface.c | |
parent | 6d5e3c318a33edb1f9176964c4ed7f076fc4248c (diff) |
KVM: x86/mmu: Move the lockdep_assert of mmu_lock to inside clear_dirty_pt_masked()
Move the lockdep_assert_held_write(&kvm->mmu_lock) from the only one caller
kvm_tdp_mmu_clear_dirty_pt_masked() to inside clear_dirty_pt_masked().
This change makes it more obvious why it's safe for clear_dirty_pt_masked()
to use the non-atomic (for non-volatile SPTEs) tdp_mmu_clear_spte_bits()
helper. for_each_tdp_mmu_root() does its own lockdep, so the only "loss"
in lockdep coverage is if the list is completely empty.
Suggested-by: Sean Christopherson <[email protected]>
Signed-off-by: Like Xu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions