KVM: x86/mmu: Do remote TLB flush before dropping RCU in TDP MMU resched
authorSean Christopherson <seanjc@google.com>
Sat, 26 Feb 2022 00:15:36 +0000 (00:15 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Mar 2022 14:31:56 +0000 (09:31 -0500)
commitbd29677952fa96bf1f1fc31203aaad628a32bdb6
treec12a6366942db0885bdadf7245734c024b0ad1dd
parentcf3e26427c08ad9015956293ab389004ac6a338e
KVM: x86/mmu: Do remote TLB flush before dropping RCU in TDP MMU resched

When yielding in the TDP MMU iterator, service any pending TLB flush
before dropping RCU protections in anticipation of using the caller's RCU
"lock" as a proxy for vCPUs in the guest.

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