KVM: arm64: Hide kvm_arm_pmu_available behind CONFIG_HW_PERF_EVENTS=y
authorSean Christopherson <seanjc@google.com>
Thu, 11 Nov 2021 02:07:36 +0000 (02:07 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 17 Nov 2021 13:49:11 +0000 (14:49 +0100)
commitbe399d824b432a85f8df86b566d2e5994fdf58b0
tree1a713857bd480daa2a99f0a5a32ad1ce7e67ecdf
parent7b517831a1c6aceb0821860edb9c7bc7d4f803a2
KVM: arm64: Hide kvm_arm_pmu_available behind CONFIG_HW_PERF_EVENTS=y

Move the definition of kvm_arm_pmu_available to pmu-emul.c and, out of
"necessity", hide it behind CONFIG_HW_PERF_EVENTS.  Provide a stub for
the key's wrapper, kvm_arm_support_pmu_v3().  Moving the key's definition
out of perf.c will allow a future commit to delete perf.c entirely.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20211111020738.2512932-16-seanjc@google.com
arch/arm64/kernel/image-vars.h
arch/arm64/kvm/perf.c
arch/arm64/kvm/pmu-emul.c
include/kvm/arm_pmu.h