]> git.baikalelectronics.ru Git - kernel.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)
commit6e1bd1e4895f394fb10aa97dc23cd035fdcd82cc
tree52c79ff4f635cb0830b070bf0d54e5dac63d518d
parentbe6972f6301aa442e60c1396d2429268d99032c9
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