Skip to content

Commit eddd214

Browse files
rananta468Marc Zyngier
authored andcommitted
KVM: Remove CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL
kvm_arch_flush_remote_tlbs() or CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL are two mechanisms to solve the same problem, allowing architecture-specific code to provide a non-IPI implementation of remote TLB flushing. Dropping CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL allows KVM to standardize all architectures on kvm_arch_flush_remote_tlbs() instead of maintaining two mechanisms. Signed-off-by: Raghavendra Rao Ananta <[email protected]> Reviewed-by: Shaoqin Huang <[email protected]> Reviewed-by: Gavin Shan <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 32121c8 commit eddd214

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

virt/kvm/Kconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ config HAVE_KVM_CPU_RELAX_INTERCEPT
6262
config KVM_VFIO
6363
bool
6464

65-
config HAVE_KVM_ARCH_TLB_FLUSH_ALL
66-
bool
67-
6865
config HAVE_KVM_INVALID_WAKEUPS
6966
bool
7067

virt/kvm/kvm_main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@ bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req)
345345
}
346346
EXPORT_SYMBOL_GPL(kvm_make_all_cpus_request);
347347

348-
#ifndef CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL
349348
void kvm_flush_remote_tlbs(struct kvm *kvm)
350349
{
351350
++kvm->stat.generic.remote_tlb_flush_requests;
@@ -366,7 +365,6 @@ void kvm_flush_remote_tlbs(struct kvm *kvm)
366365
++kvm->stat.generic.remote_tlb_flush;
367366
}
368367
EXPORT_SYMBOL_GPL(kvm_flush_remote_tlbs);
369-
#endif
370368

371369
static void kvm_flush_shadow_all(struct kvm *kvm)
372370
{

0 commit comments

Comments
 (0)