diff options
author | Sean Christopherson <[email protected]> | 2023-10-27 11:21:46 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2023-11-13 05:29:08 -0500 |
commit | d497a0fab8b8457214fcc9b1a39530920ea7e95e (patch) | |
tree | f8260d5cb2a8f2edb62961ef3f82f6d29c3ab4a2 /tools/perf/scripts/python/stackcollapse.py | |
parent | 8569992d64b8f750e34b7858eac5d7daaf0f80fd (diff) |
KVM: WARN if there are dangling MMU invalidations at VM destruction
Add an assertion that there are no in-progress MMU invalidations when a
VM is being destroyed, with the exception of the scenario where KVM
unregisters its MMU notifier between an .invalidate_range_start() call and
the corresponding .invalidate_range_end().
KVM can't detect unpaired calls from the mmu_notifier due to the above
exception waiver, but the assertion can detect KVM bugs, e.g. such as the
bug that *almost* escaped initial guest_memfd development.
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