]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: arm64: Replace KVM_ARM_PMU with HW_PERF_EVENTS
authorMarc Zyngier <maz@kernel.org>
Mon, 4 Jan 2021 16:50:16 +0000 (16:50 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 4 Jan 2021 16:50:16 +0000 (16:50 +0000)
KVM_ARM_PMU only existed for the benefit of 32bit ARM hosts,
and makes no sense now that we are 64bit only. Get rid of it.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/Kconfig
arch/arm64/kvm/Makefile
include/kvm/arm_pmu.h

index 043756db8f6ec27c72fc0fc1d4c261d82f87b445..3964acf5451eacec41369ec2688e5cf3eab3906d 100644 (file)
@@ -49,14 +49,6 @@ if KVM
 
 source "virt/kvm/Kconfig"
 
-config KVM_ARM_PMU
-       bool "Virtual Performance Monitoring Unit (PMU) support"
-       depends on HW_PERF_EVENTS
-       default y
-       help
-         Adds support for a virtual Performance Monitoring Unit (PMU) in
-         virtual machines.
-
 endif # KVM
 
 endif # VIRTUALIZATION
index 60fd181df6243f93ecc27219ec0a9fedf87ff7df..13b017284bf96c761b040e7db41631afda275daf 100644 (file)
@@ -24,4 +24,4 @@ kvm-y := $(KVM)/kvm_main.o $(KVM)/coalesced_mmio.o $(KVM)/eventfd.o \
         vgic/vgic-mmio-v3.o vgic/vgic-kvm-device.o \
         vgic/vgic-its.o vgic/vgic-debug.o
 
-kvm-$(CONFIG_KVM_ARM_PMU)  += pmu-emul.o
+kvm-$(CONFIG_HW_PERF_EVENTS)  += pmu-emul.o
index fc85f50fa0e96e6fd6111c7e027a81ebe6004829..8dcb3e1477bc98faa7d62171ba5ec8166a41bc69 100644 (file)
@@ -13,7 +13,7 @@
 #define ARMV8_PMU_CYCLE_IDX            (ARMV8_PMU_MAX_COUNTERS - 1)
 #define ARMV8_PMU_MAX_COUNTER_PAIRS    ((ARMV8_PMU_MAX_COUNTERS + 1) >> 1)
 
-#ifdef CONFIG_KVM_ARM_PMU
+#ifdef CONFIG_HW_PERF_EVENTS
 
 struct kvm_pmc {
        u8 idx; /* index into the pmu->pmc array */