KVM/MMU: Flush tlb directly in the kvm_zap_gfn_range()
authorLan Tianyu <Tianyu.Lan@microsoft.com>
Thu, 6 Dec 2018 13:21:13 +0000 (21:21 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Dec 2018 10:28:43 +0000 (11:28 +0100)
commit71883a62fcd6c70639fa12cda733378b4d997409
treeb8fb75933370682a7ff7c6bbc82c49dcbf57a1dd
parent3cc5ea94de5f71dff0d3353f610e729308583e6b
KVM/MMU: Flush tlb directly in the kvm_zap_gfn_range()

Originally, flush tlb is done by slot_handle_level_range(). This patch
moves the flush directly to kvm_zap_gfn_range() when range flush is
available, so that only the requested range can be flushed.

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