target/arm: Drop kvm_arm_pmu_supported
This function has only one use, so inline it and drop the stubs. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20260216034432.23912-9-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Richard Henderson committed
Feb 26, 2026 at 11:27 UTC
c23a2b303ed86315c6549e6ce2abd9c40c0a92ba
3 files changed
+1
-24
target/arm/kvm-stub.c
-5
@@ -32,11 +32,6 @@ bool kvm_arm_aarch32_supported(void)
32
return false;
33
}
34
35
-bool kvm_arm_pmu_supported(void)
36
-{
37
- return false;
38
-}
39
-
35
bool kvm_arm_mte_supported(void)
36
{
37
return false;
target/arm/kvm.c
+1
-6
@@ -319,7 +319,7 @@ static bool kvm_arm_get_host_cpu_features(ARMHostCPUFeatures *ahcf)
319
1 << KVM_ARM_VCPU_PTRAUTH_GENERIC);
320
}
321
322
- if (kvm_arm_pmu_supported()) {
322
+ if (kvm_check_extension(kvm_state, KVM_CAP_ARM_PMU_V3)) {
323
init.features[0] |= 1 << KVM_ARM_VCPU_PMU_V3;
324
pmu_supported = true;
325
features |= 1ULL << ARM_FEATURE_PMU;
@@ -570,11 +570,6 @@ void kvm_arm_add_vcpu_properties(ARMCPU *cpu)
570
"Valid values are 0.1, 0.2, 1.0, 1.1, 1.2, 1.3");
571
}
572
573
-bool kvm_arm_pmu_supported(void)
574
-{
575
- return kvm_check_extension(kvm_state, KVM_CAP_ARM_PMU_V3);
576
-}
577
-
573
int kvm_arm_get_max_vm_ipa_size(MachineState *ms, bool *fixed_ipa)
574
{
575
KVMState *s = KVM_STATE(ms->accelerator);
target/arm/kvm_arm.h
-13
@@ -168,14 +168,6 @@ void kvm_arm_steal_time_finalize(ARMCPU *cpu, Error **errp);
168
*/
169
bool kvm_arm_aarch32_supported(void);
170
171
-/**
172
- * kvm_arm_pmu_supported:
173
- *
174
- * Returns: true if KVM can enable the PMU
175
- * and false otherwise.
176
- */
177
-bool kvm_arm_pmu_supported(void);
178
-
171
/**
172
* kvm_arm_mte_supported:
173
*
@@ -196,11 +188,6 @@ static inline bool kvm_arm_aarch32_supported(void)
188
return false;
189
}
190
199
-static inline bool kvm_arm_pmu_supported(void)
200
-{
201
- return false;
202
-}
203
-
191
static inline bool kvm_arm_mte_supported(void)
192
{
193
return false;