mirror of
https://github.com/torvalds/linux
synced 2024-09-06 09:51:23 +00:00
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 <rananta@google.com> Reviewed-by: Shaoqin Huang <shahuang@redhat.com> Reviewed-by: Gavin Shan <gshan@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230811045127.3308641-5-rananta@google.com
This commit is contained in:
parent
32121c8138
commit
eddd214810
|
@ -62,9 +62,6 @@ config HAVE_KVM_CPU_RELAX_INTERCEPT
|
||||||
config KVM_VFIO
|
config KVM_VFIO
|
||||||
bool
|
bool
|
||||||
|
|
||||||
config HAVE_KVM_ARCH_TLB_FLUSH_ALL
|
|
||||||
bool
|
|
||||||
|
|
||||||
config HAVE_KVM_INVALID_WAKEUPS
|
config HAVE_KVM_INVALID_WAKEUPS
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
|
|
@ -345,7 +345,6 @@ bool kvm_make_all_cpus_request(struct kvm *kvm, unsigned int req)
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(kvm_make_all_cpus_request);
|
EXPORT_SYMBOL_GPL(kvm_make_all_cpus_request);
|
||||||
|
|
||||||
#ifndef CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL
|
|
||||||
void kvm_flush_remote_tlbs(struct kvm *kvm)
|
void kvm_flush_remote_tlbs(struct kvm *kvm)
|
||||||
{
|
{
|
||||||
++kvm->stat.generic.remote_tlb_flush_requests;
|
++kvm->stat.generic.remote_tlb_flush_requests;
|
||||||
|
@ -366,7 +365,6 @@ void kvm_flush_remote_tlbs(struct kvm *kvm)
|
||||||
++kvm->stat.generic.remote_tlb_flush;
|
++kvm->stat.generic.remote_tlb_flush;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(kvm_flush_remote_tlbs);
|
EXPORT_SYMBOL_GPL(kvm_flush_remote_tlbs);
|
||||||
#endif
|
|
||||||
|
|
||||||
static void kvm_flush_shadow_all(struct kvm *kvm)
|
static void kvm_flush_shadow_all(struct kvm *kvm)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue