KVM: arm64: Expose ID_AA64PFR2_EL1 to userspace and guests
authorMarc Zyngier <maz@kernel.org>
Tue, 20 Aug 2024 13:18:02 +0000 (14:18 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 27 Aug 2024 06:59:27 +0000 (07:59 +0100)
commit13c7a51eeb747ec315485ac7b13d4ea03707f53e
treedd2bbf1155b7451a865c95ed076a76a49415e0e5
parentc9150a8ad9cdb69584d4ec5af61481df41498eb8
KVM: arm64: Expose ID_AA64PFR2_EL1 to userspace and guests

Everything is now in place for a guest to "enjoy" FP8 support.
Expose ID_AA64PFR2_EL1 to both userspace and guests, with the
explicit restriction of only being able to clear FPMR.

All other features (MTE* at the time of writing) are hidden
and not writable.

Reviewed-by: Mark Brown <broonie@kernel.org>
Tested-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20240820131802.3547589-9-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c