File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1239,6 +1239,11 @@ static int kvm_vcpu_init_check_features(struct kvm_vcpu *vcpu,
1239
1239
test_bit (KVM_ARM_VCPU_PTRAUTH_GENERIC , & features ))
1240
1240
return - EINVAL ;
1241
1241
1242
+ /* Disallow NV+SVE for the time being */
1243
+ if (test_bit (KVM_ARM_VCPU_HAS_EL2 , & features ) &&
1244
+ test_bit (KVM_ARM_VCPU_SVE , & features ))
1245
+ return - EINVAL ;
1246
+
1242
1247
if (!test_bit (KVM_ARM_VCPU_EL1_32BIT , & features ))
1243
1248
return 0 ;
1244
1249
Original file line number Diff line number Diff line change @@ -208,12 +208,6 @@ int kvm_reset_vcpu(struct kvm_vcpu *vcpu)
208
208
if (loaded )
209
209
kvm_arch_vcpu_put (vcpu );
210
210
211
- /* Disallow NV+SVE for the time being */
212
- if (vcpu_has_nv (vcpu ) && vcpu_has_feature (vcpu , KVM_ARM_VCPU_SVE )) {
213
- ret = - EINVAL ;
214
- goto out ;
215
- }
216
-
217
211
if (!kvm_arm_vcpu_sve_finalized (vcpu )) {
218
212
if (test_bit (KVM_ARM_VCPU_SVE , vcpu -> arch .features ))
219
213
kvm_vcpu_enable_sve (vcpu );
@@ -267,7 +261,7 @@ int kvm_reset_vcpu(struct kvm_vcpu *vcpu)
267
261
268
262
/* Reset timer */
269
263
ret = kvm_timer_vcpu_reset (vcpu );
270
- out :
264
+
271
265
if (loaded )
272
266
kvm_arch_vcpu_load (vcpu , smp_processor_id ());
273
267
preempt_enable ();
You can’t perform that action at this time.
0 commit comments