KVM: x86/mmu: Declare flush_remote_tlbs{_range}() hooks iff HYPERV!=n
authorSean Christopherson <seanjc@google.com>
Wed, 18 Oct 2023 19:23:25 +0000 (12:23 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 29 Nov 2023 22:44:47 +0000 (14:44 -0800)
commit0277022a77a56f8251e8cf8d25e9308478e79ea5
tree54de95adbb4af341e4477b0ae6210b9127e8f340
parente9e60c82fe391d04db55a91c733df4a017c28b2f
KVM: x86/mmu: Declare flush_remote_tlbs{_range}() hooks iff HYPERV!=n

Declare the kvm_x86_ops hooks used to wire up paravirt TLB flushes when
running under Hyper-V if and only if CONFIG_HYPERV!=n.  Wrapping yet more
code with IS_ENABLED(CONFIG_HYPERV) eliminates a handful of conditional
branches, and makes it super obvious why the hooks *might* be valid.

Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/r/20231018192325.1893896-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm-x86-ops.h
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu/mmu.c