Skip to content

Commit fd22af1

Browse files
brooniewilldeacon
authored andcommitted
KVM: arm64: Allow control of dpISA extensions in ID_AA64ISAR3_EL1
ID_AA64ISAR3_EL1 is currently marked as unallocated in KVM but does have a number of bitfields defined in it. Expose FPRCVT and FAMINMAX, two simple instruction only extensions to guests. Reviewed-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20250107-arm64-2024-dpisa-v5-4-7578da51fc3d@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
1 parent 8199354 commit fd22af1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

arch/arm64/kvm/sys_regs.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,6 +1604,9 @@ static u64 __kvm_read_sanitised_id_reg(const struct kvm_vcpu *vcpu,
16041604
if (!cpus_have_final_cap(ARM64_HAS_WFXT))
16051605
val &= ~ARM64_FEATURE_MASK(ID_AA64ISAR2_EL1_WFxT);
16061606
break;
1607+
case SYS_ID_AA64ISAR3_EL1:
1608+
val &= ID_AA64ISAR3_EL1_FPRCVT | ID_AA64ISAR3_EL1_FAMINMAX;
1609+
break;
16071610
case SYS_ID_AA64MMFR2_EL1:
16081611
val &= ~ID_AA64MMFR2_EL1_CCIDX_MASK;
16091612
break;
@@ -2608,7 +2611,8 @@ static const struct sys_reg_desc sys_reg_descs[] = {
26082611
ID_WRITABLE(ID_AA64ISAR2_EL1, ~(ID_AA64ISAR2_EL1_RES0 |
26092612
ID_AA64ISAR2_EL1_APA3 |
26102613
ID_AA64ISAR2_EL1_GPA3)),
2611-
ID_UNALLOCATED(6,3),
2614+
ID_WRITABLE(ID_AA64ISAR3_EL1, (ID_AA64ISAR3_EL1_FPRCVT |
2615+
ID_AA64ISAR3_EL1_FAMINMAX)),
26122616
ID_UNALLOCATED(6,4),
26132617
ID_UNALLOCATED(6,5),
26142618
ID_UNALLOCATED(6,6),

0 commit comments

Comments
 (0)