File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1197,6 +1197,9 @@ static unsigned long system_supported_vcpu_features(void)
1197
1197
if (!cpus_have_final_cap (ARM64_HAS_32BIT_EL1 ))
1198
1198
clear_bit (KVM_ARM_VCPU_EL1_32BIT , & features );
1199
1199
1200
+ if (!kvm_arm_support_pmu_v3 ())
1201
+ clear_bit (KVM_ARM_VCPU_PMU_V3 , & features );
1202
+
1200
1203
return features ;
1201
1204
}
1202
1205
Original file line number Diff line number Diff line change @@ -255,11 +255,6 @@ int kvm_reset_vcpu(struct kvm_vcpu *vcpu)
255
255
else
256
256
pstate = VCPU_RESET_PSTATE_EL1 ;
257
257
258
- if (kvm_vcpu_has_pmu (vcpu ) && !kvm_arm_support_pmu_v3 ()) {
259
- ret = - EINVAL ;
260
- goto out ;
261
- }
262
-
263
258
/* Reset core registers */
264
259
memset (vcpu_gp_regs (vcpu ), 0 , sizeof (* vcpu_gp_regs (vcpu )));
265
260
memset (& vcpu -> arch .ctxt .fp_regs , 0 , sizeof (vcpu -> arch .ctxt .fp_regs ));
You can’t perform that action at this time.
0 commit comments