]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
KVM: arm64: Expose FEAT_LSUI to guests
authorYeoreum Yun <yeoreum.yun@arm.com>
Sat, 14 Mar 2026 17:51:27 +0000 (17:51 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 26 Mar 2026 18:19:28 +0000 (18:19 +0000)
Expose the FEAT_LSUI ID register field to guests.

Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kvm/sys_regs.c

index 1b4cacb6e918abcdc68bc9e270ab95a8681b3ac3..484f98eaf6d4a52a1559c91ad17efe40fbe7141d 100644 (file)
@@ -1805,7 +1805,7 @@ static u64 __kvm_read_sanitised_id_reg(const struct kvm_vcpu *vcpu,
                break;
        case SYS_ID_AA64ISAR3_EL1:
                val &= ID_AA64ISAR3_EL1_FPRCVT | ID_AA64ISAR3_EL1_LSFE |
-                       ID_AA64ISAR3_EL1_FAMINMAX;
+                       ID_AA64ISAR3_EL1_FAMINMAX | ID_AA64ISAR3_EL1_LSUI;
                break;
        case SYS_ID_AA64MMFR2_EL1:
                val &= ~ID_AA64MMFR2_EL1_CCIDX_MASK;
@@ -3252,6 +3252,7 @@ static const struct sys_reg_desc sys_reg_descs[] = {
                                        ID_AA64ISAR2_EL1_GPA3)),
        ID_WRITABLE(ID_AA64ISAR3_EL1, (ID_AA64ISAR3_EL1_FPRCVT |
                                       ID_AA64ISAR3_EL1_LSFE |
+                                      ID_AA64ISAR3_EL1_LSUI |
                                       ID_AA64ISAR3_EL1_FAMINMAX)),
        ID_UNALLOCATED(6,4),
        ID_UNALLOCATED(6,5),