diff options
author | Sean Christopherson <[email protected]> | 2023-10-27 11:21:53 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2023-11-13 05:31:38 -0500 |
commit | 193bbfaacc84f9ee9c281ec0a8dd2ec8e4821e57 (patch) | |
tree | 70a9a8676dbb7bdfc2909c6a4db3b223d1c09313 /tools/perf/scripts/python/stackcollapse.py | |
parent | cec29eef0a815386d520d61c2cbe16d537931639 (diff) |
KVM: Drop .on_unlock() mmu_notifier hook
Drop the .on_unlock() mmu_notifer hook now that it's no longer used for
notifying arch code that memory has been reclaimed. Adding .on_unlock()
and invoking it *after* dropping mmu_lock was a terrible idea, as doing so
resulted in .on_lock() and .on_unlock() having divergent and asymmetric
behavior, and set future developers up for failure, i.e. all but asked for
bugs where KVM relied on using .on_unlock() to try to run a callback while
holding mmu_lock.
Opportunistically add a lockdep assertion in kvm_mmu_invalidate_end() to
guard against future bugs of this nature.
Reported-by: Isaku Yamahata <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Reviewed-by: Fuad Tabba <[email protected]>
Tested-by: Fuad Tabba <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions