Skip to content

Commit cfb0c08

Browse files
rananta468Marc Zyngier
authored andcommitted
KVM: Declare kvm_arch_flush_remote_tlbs() globally
There's no reason for the architectures to declare kvm_arch_flush_remote_tlbs() in their own headers. Hence to avoid this duplication, make the declaration global, leaving the architectures to define only __KVM_HAVE_ARCH_FLUSH_REMOTE_TLBS as needed. Signed-off-by: Raghavendra Rao Ananta <[email protected]> Reviewed-by: Shaoqin Huang <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a1342c8 commit cfb0c08

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arch/mips/include/asm/kvm_host.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,5 @@ static inline void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) {}
897897
static inline void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) {}
898898

899899
#define __KVM_HAVE_ARCH_FLUSH_REMOTE_TLBS
900-
int kvm_arch_flush_remote_tlbs(struct kvm *kvm);
901900

902901
#endif /* __MIPS_KVM_HOST_H__ */

include/linux/kvm_host.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,6 +1484,8 @@ static inline int kvm_arch_flush_remote_tlbs(struct kvm *kvm)
14841484
{
14851485
return -ENOTSUPP;
14861486
}
1487+
#else
1488+
int kvm_arch_flush_remote_tlbs(struct kvm *kvm);
14871489
#endif
14881490

14891491
#ifdef __KVM_HAVE_ARCH_NONCOHERENT_DMA

0 commit comments

Comments
 (0)