]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Drop a redundant remote TLB flush in kvm_zap_gfn_range()
authorSean Christopherson <seanjc@google.com>
Fri, 22 Oct 2021 01:00:04 +0000 (18:00 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Oct 2021 09:51:46 +0000 (05:51 -0400)
commit2aba7f273d7d4ea73009ee8b4648ae7b91a1ddeb
treeddd1f821b84eef32d2311b2d52ef2175cbe0dc60
parente46259515096249169a6e656d884459f9a1a2bf8
KVM: x86/mmu: Drop a redundant remote TLB flush in kvm_zap_gfn_range()

Remove an unnecessary remote TLB flush in kvm_zap_gfn_range() now that
said function holds mmu_lock for write for its entire duration.  The
flush was added by the now-reverted commit to allow TDP MMU to flush while
holding mmu_lock for read, as the transition from write=>read required
dropping the lock and thus a pending flush needed to be serviced.

Fixes: a7048c7f2da9 ("Revert "KVM: x86/mmu: Allow zap gfn range to operate under the mmu read lock"")
Cc: Maxim Levitsky <mlevitsk@redhat.com>
Cc: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Cc: Ben Gardon <bgardon@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211022010005.1454978-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c