KVM: MIPS: rework flush_shadow_* callbacks into one that prepares the flush
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 31 Mar 2021 07:38:16 +0000 (09:38 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 17 Apr 2021 12:31:05 +0000 (08:31 -0400)
commit5194552fb1ffb4248c8db3f7286aa4ac7ae3163b
tree47fc24a1b763ab2b83a0f0e10b1ac1b2ade30025
parent6c9dd6d26216ad9733e57f382e1669c142494aab
KVM: MIPS: rework flush_shadow_* callbacks into one that prepares the flush

Both trap-and-emulate and VZ have a single implementation that covers
both .flush_shadow_all and .flush_shadow_memslot, and both of them end
with a call to kvm_flush_remote_tlbs.

Unify the callbacks into one and extract the call to kvm_flush_remote_tlbs.
The next patches will pull it further out of the the architecture-specific
MMU notifier functions kvm_unmap_hva_range and kvm_set_spte_hva.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/include/asm/kvm_host.h
arch/mips/kvm/mips.c
arch/mips/kvm/mmu.c
arch/mips/kvm/trap_emul.c
arch/mips/kvm/vz.c