diff options
author | Sean Christopherson <seanjc@google.com> | 2021-11-20 07:50:21 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-11-30 11:09:25 +0300 |
commit | 4b85c921cd393764d22c0cdab6d7d5d120aa0980 (patch) | |
tree | f261696b2e266d3e7e847e90fa6f93af52197c3f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7533377215b6ee432c06c5855f6be5d66e694e46 (diff) | |
download | linux-4b85c921cd393764d22c0cdab6d7d5d120aa0980.tar.xz |
KVM: x86/mmu: Remove spurious TLB flushes in TDP MMU zap collapsible path
Drop the "flush" param and return values to/from the TDP MMU's helper for
zapping collapsible SPTEs. Because the helper runs with mmu_lock held
for read, not write, it uses tdp_mmu_zap_spte_atomic(), and the atomic
zap handles the necessary remote TLB flush.
Similarly, because mmu_lock is dropped and re-acquired between zapping
legacy MMUs and zapping TDP MMUs, kvm_mmu_zap_collapsible_sptes() must
handle remote TLB flushes from the legacy MMU before calling into the TDP
MMU.
Fixes: e2209710ccc5d ("KVM: x86/mmu: Skip rmap operations if rmaps not allocated")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211120045046.3940942-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions