]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
kvm: x86/mmu: Flush TLB before zap_gfn_range releases RCU
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Mar 2022 09:05:08 +0000 (05:05 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 21 Mar 2022 09:11:51 +0000 (05:11 -0400)
commitfcb93eb6d09dd302cbef22bd95a5858af75e4156
tree52c79ff4f635cb0830b070bf0d54e5dac63d518d
parent714797c98eddae34e81b444c906e60f890885678
kvm: x86/mmu: Flush TLB before zap_gfn_range releases RCU

Since "KVM: x86/mmu: Zap only TDP MMU leafs in kvm_zap_gfn_range()"
is going to be reverted, it's not going to be true anymore that
the zap-page flow does not free any 'struct kvm_mmu_page'.  Introduce
an early flush before tdp_mmu_zap_leafs() returns, to preserve
bisectability.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c