KVM: X86: Don't unload MMU in kvm_vcpu_flush_tlb_guest()
authorLai Jiangshan <laijs@linux.alibaba.com>
Tue, 19 Oct 2021 11:01:54 +0000 (19:01 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Oct 2021 09:44:43 +0000 (05:44 -0400)
commit61b05a9fd4aec2dff0bbdf9d16ee000b24b33f41
tree62324710cacf6fecbc17aa06853bcd82c5d47c4e
parent264d3dc1d3dca13b7eaf0c4fa7a4b2c91a5e056a
KVM: X86: Don't unload MMU in kvm_vcpu_flush_tlb_guest()

kvm_mmu_unload() destroys all the PGD caches.  Use the lighter
kvm_mmu_sync_roots() and kvm_mmu_sync_prev_roots() instead.

Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Message-Id: <20211019110154.4091-5-jiangshanlai@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.h
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/x86.c