File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -248,21 +248,16 @@ int kvm_reset_vcpu(struct kvm_vcpu *vcpu)
248
248
}
249
249
}
250
250
251
- switch (vcpu -> arch .target ) {
252
- default :
253
- if (vcpu_el1_is_32bit (vcpu )) {
254
- pstate = VCPU_RESET_PSTATE_SVC ;
255
- } else if (vcpu_has_nv (vcpu )) {
256
- pstate = VCPU_RESET_PSTATE_EL2 ;
257
- } else {
258
- pstate = VCPU_RESET_PSTATE_EL1 ;
259
- }
260
-
261
- if (kvm_vcpu_has_pmu (vcpu ) && !kvm_arm_support_pmu_v3 ()) {
262
- ret = - EINVAL ;
263
- goto out ;
264
- }
265
- break ;
251
+ if (vcpu_el1_is_32bit (vcpu ))
252
+ pstate = VCPU_RESET_PSTATE_SVC ;
253
+ else if (vcpu_has_nv (vcpu ))
254
+ pstate = VCPU_RESET_PSTATE_EL2 ;
255
+ else
256
+ pstate = VCPU_RESET_PSTATE_EL1 ;
257
+
258
+ if (kvm_vcpu_has_pmu (vcpu ) && !kvm_arm_support_pmu_v3 ()) {
259
+ ret = - EINVAL ;
260
+ goto out ;
266
261
}
267
262
268
263
/* Reset core registers */
You can’t perform that action at this time.
0 commit comments