Skip to content

Commit f6bff18

Browse files
LeviYeoReumctmarinas
authored andcommitted
KVM: arm64: Expose FEAT_LSUI to guests
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>
1 parent 7181f71 commit f6bff18

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arch/arm64/kvm/sys_regs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@ static u64 __kvm_read_sanitised_id_reg(const struct kvm_vcpu *vcpu,
18051805
break;
18061806
case SYS_ID_AA64ISAR3_EL1:
18071807
val &= ID_AA64ISAR3_EL1_FPRCVT | ID_AA64ISAR3_EL1_LSFE |
1808-
ID_AA64ISAR3_EL1_FAMINMAX;
1808+
ID_AA64ISAR3_EL1_FAMINMAX | ID_AA64ISAR3_EL1_LSUI;
18091809
break;
18101810
case SYS_ID_AA64MMFR2_EL1:
18111811
val &= ~ID_AA64MMFR2_EL1_CCIDX_MASK;
@@ -3252,6 +3252,7 @@ static const struct sys_reg_desc sys_reg_descs[] = {
32523252
ID_AA64ISAR2_EL1_GPA3)),
32533253
ID_WRITABLE(ID_AA64ISAR3_EL1, (ID_AA64ISAR3_EL1_FPRCVT |
32543254
ID_AA64ISAR3_EL1_LSFE |
3255+
ID_AA64ISAR3_EL1_LSUI |
32553256
ID_AA64ISAR3_EL1_FAMINMAX)),
32563257
ID_UNALLOCATED(6,4),
32573258
ID_UNALLOCATED(6,5),

0 commit comments

Comments
 (0)