KVM: arm64: Enable FP8 support when available and configured
authorMarc Zyngier <maz@kernel.org>
Tue, 20 Aug 2024 13:18:01 +0000 (14:18 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 27 Aug 2024 06:59:27 +0000 (07:59 +0100)
commitc9150a8ad9cdb69584d4ec5af61481df41498eb8
tree797116bc59e127c01083a0d562261f9f134acc2b
parent6d7307651a8a021e7286e90264676b893cb6032d
KVM: arm64: Enable FP8 support when available and configured

If userspace has enabled FP8 support (by setting ID_AA64PFR2_EL1.FPMR
to 1), let's enable the feature by setting HCRX_EL2.EnFPM for the vcpu.

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