aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/mips/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-04-02 11:44:56 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-04-17 08:31:05 -0400
commit566a0beef52c83f13b67aef02b2bc0aa63c0e0d6 (patch)
tree7dc2f804a74501b36a838c648e785773cb4a25ed /arch/mips/include/asm/kvm_host.h
parentKVM: MIPS: rework flush_shadow_* callbacks into one that prepares the flush (diff)
downloadwireguard-linux-566a0beef52c83f13b67aef02b2bc0aa63c0e0d6.tar.xz
wireguard-linux-566a0beef52c83f13b67aef02b2bc0aa63c0e0d6.zip
KVM: MIPS: let generic code call prepare_flush_shadow
Since all calls to kvm_flush_remote_tlbs must be preceded by kvm_mips_callbacks->prepare_flush_shadow, repurpose kvm_arch_flush_remote_tlb to invoke it. This makes it possible to use the TLB flushing mechanism provided by the generic MMU notifier code. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/include/asm/kvm_host.h')
-rw-r--r--arch/mips/include/asm/kvm_host.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/include/asm/kvm_host.h b/arch/mips/include/asm/kvm_host.h
index 6c8c0ab53be2..d0944a75fc8d 100644
--- a/arch/mips/include/asm/kvm_host.h
+++ b/arch/mips/include/asm/kvm_host.h
@@ -1142,4 +1142,7 @@ static inline void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) {}
static inline void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) {}
static inline void kvm_arch_vcpu_block_finish(struct kvm_vcpu *vcpu) {}
+#define __KVM_HAVE_ARCH_FLUSH_REMOTE_TLB
+int kvm_arch_flush_remote_tlb(struct kvm *kvm);
+
#endif /* __MIPS_KVM_HOST_H__ */