]> 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)
commit6ae75c552f6335bbca3238d41d93009b831b77b4
tree9c4e07af0ca9da72921c34c90a44b5ae5c166d60
parent5bd65e378dd2ca188f539b0201a073cafb0ec4c6
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