diff options
author | Paul Durrant <[email protected]> | 2024-02-15 15:29:14 +0000 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-02-22 07:01:20 -0800 |
commit | 9fa336e343b2c7f6bad6fd5fa2e1cf55e80d3ed1 (patch) | |
tree | fedea5f91c18f801ec7297d42f2d60e8e0ce92ce /tools/perf/scripts/python/check-perf-trace.py | |
parent | 615451d8cb3f82265e0ed60414b606b4fa120f5e (diff) |
KVM: pfncache: check the need for invalidation under read lock first
When processing mmu_notifier invalidations for gpc caches, pre-check for
overlap with the invalidation event while holding gpc->lock for read, and
only take gpc->lock for write if the cache needs to be invalidated. Doing
a pre-check without taking gpc->lock for write avoids unnecessarily
contending the lock for unrelated invalidations, which is very beneficial
for caches that are heavily used (but rarely subjected to mmu_notifier
invalidations).
Signed-off-by: Paul Durrant <[email protected]>
Reviewed-by: David Woodhouse <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions