Skip to content

Commit f1ee914

Browse files
committed
KVM: arm64: Allow the use of SVE+NV
Allow SVE and NV to mix now that everything is in place to handle it correctly. Reviewed-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent cd931bd commit f1ee914

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

arch/arm64/kvm/arm.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,11 +1419,6 @@ static int kvm_vcpu_init_check_features(struct kvm_vcpu *vcpu,
14191419
test_bit(KVM_ARM_VCPU_PTRAUTH_GENERIC, &features))
14201420
return -EINVAL;
14211421

1422-
/* Disallow NV+SVE for the time being */
1423-
if (test_bit(KVM_ARM_VCPU_HAS_EL2, &features) &&
1424-
test_bit(KVM_ARM_VCPU_SVE, &features))
1425-
return -EINVAL;
1426-
14271422
if (!test_bit(KVM_ARM_VCPU_EL1_32BIT, &features))
14281423
return 0;
14291424

arch/arm64/kvm/nested.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ static u64 limit_nv_id_reg(u32 id, u64 val)
4141
break;
4242

4343
case SYS_ID_AA64PFR0_EL1:
44-
/* No AMU, MPAM, S-EL2, RAS or SVE */
44+
/* No AMU, MPAM, S-EL2, or RAS */
4545
val &= ~(GENMASK_ULL(55, 52) |
4646
NV_FTR(PFR0, AMU) |
4747
NV_FTR(PFR0, MPAM) |
4848
NV_FTR(PFR0, SEL2) |
4949
NV_FTR(PFR0, RAS) |
50-
NV_FTR(PFR0, SVE) |
5150
NV_FTR(PFR0, EL3) |
5251
NV_FTR(PFR0, EL2) |
5352
NV_FTR(PFR0, EL1));

0 commit comments

Comments
 (0)