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)
commit93fa50f644e0aea735bd21e9f86f95ad6c7cf40e
tree9c4e07af0ca9da72921c34c90a44b5ae5c166d60
parentc8e5a0d0e9bcc67b095e44c8f4420d4ed08ff06a
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