Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 -1
+1 -1
arch/arm64/kvm/sys_regs.c
··· 2067 2067 ID_SANITISED(ID_AA64PFR1_EL1), 2068 2068 ID_UNALLOCATED(4,2), 2069 2069 ID_UNALLOCATED(4,3), 2070 - ID_SANITISED(ID_AA64ZFR0_EL1), 2070 + ID_WRITABLE(ID_AA64ZFR0_EL1, ~ID_AA64ZFR0_EL1_RES0), 2071 2071 ID_HIDDEN(ID_AA64SMFR0_EL1), 2072 2072 ID_UNALLOCATED(4,6), 2073 2073 ID_UNALLOCATED(4,7),