Skip to content

Commit f89fbb3

Browse files
committed
KVM: arm64: Allow userspace to change ID_AA64ZFR0_EL1
All known fields in ID_AA64ZFR0_EL1 describe the unprivileged instructions supported by the PE's SVE implementation. Allow userspace to pick and choose the advertised feature set, though nothing stops the guest from using undisclosed instructions. Reviewed-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20231003230408.3405722-10-oliver.upton@linux.dev Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
1 parent 8cfd5be commit f89fbb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kvm/sys_regs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2067,7 +2067,7 @@ static const struct sys_reg_desc sys_reg_descs[] = {
20672067
ID_SANITISED(ID_AA64PFR1_EL1),
20682068
ID_UNALLOCATED(4,2),
20692069
ID_UNALLOCATED(4,3),
2070-
ID_SANITISED(ID_AA64ZFR0_EL1),
2070+
ID_WRITABLE(ID_AA64ZFR0_EL1, ~ID_AA64ZFR0_EL1_RES0),
20712071
ID_HIDDEN(ID_AA64SMFR0_EL1),
20722072
ID_UNALLOCATED(4,6),
20732073
ID_UNALLOCATED(4,7),

0 commit comments

Comments
 (0)