KVM: arm64: Allow userspace to change ID_AA64ZFR0_EL1
authorOliver Upton <oliver.upton@linux.dev>
Tue, 3 Oct 2023 23:04:05 +0000 (23:04 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 4 Oct 2023 17:11:50 +0000 (17:11 +0000)
commitf89fbb350dd76d6b5f080954309b9dec5ad220ac
tree205124ab6cd474bd75687a3a20fbb8c7f1bad6ee
parent8cfd5be88ebe3d71be1a2c52fc72a355bb924b49
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>
arch/arm64/kvm/sys_regs.c