diff options
| author | Paul Durrant <[email protected]> | 2024-02-15 15:29:14 +0000 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2024-02-22 15:01:20 +0000 |
| commit | 9fa336e343b2c7f6bad6fd5fa2e1cf55e80d3ed1 (patch) | |
| tree | fedea5f91c18f801ec7297d42f2d60e8e0ce92ce /scripts/bpf_doc.py | |
| parent | KVM: x86/xen: advertize the KVM_XEN_HVM_CONFIG_SHARED_INFO_HVA capability (diff) | |
| download | kernel-9fa336e343b2c7f6bad6fd5fa2e1cf55e80d3ed1.tar.gz kernel-9fa336e343b2c7f6bad6fd5fa2e1cf55e80d3ed1.zip | |
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 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions
