]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Batch TLB flushes from TDP MMU for MMU notifier change_spte
authorSean Christopherson <seanjc@google.com>
Sat, 26 Feb 2022 00:15:26 +0000 (00:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Mar 2022 14:31:51 +0000 (09:31 -0500)
commit8f383ab9eaebb03f7bc4001f71cbf83bf12473cf
tree9c4e07af0ca9da72921c34c90a44b5ae5c166d60
parent3824537388b09521719d1cd25c3832153165cbc1
KVM: x86/mmu: Batch TLB flushes from TDP MMU for MMU notifier change_spte

Batch TLB flushes (with other MMUs) when handling ->change_spte()
notifications in the TDP MMU.  The MMU notifier path in question doesn't
allow yielding and correcty flushes before dropping mmu_lock.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Ben Gardon <bgardon@google.com>
Message-Id: <20220226001546.360188-9-seanjc@google.com>
Reviewed-by: Mingwei Zhang <mizhang@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c