]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Honor trap routing for FPMR
authorMarc Zyngier <maz@kernel.org>
Tue, 20 Aug 2024 13:17:59 +0000 (14:17 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 27 Aug 2024 06:59:27 +0000 (07:59 +0100)
commitb8f669b491ec4693d07126b20db0fbe747556d11
treebfe38db3b06f1525be30d4795220946f69b950de
parentef3be86021c3bdf384c36d9d4aa1ee9fe65b95af
KVM: arm64: Honor trap routing for FPMR

HCRX_EL2.EnFPM controls the trapping of FPMR (as well as the validity
of any FP8 instruction, but we don't really care about this last part).

Describe the trap bit so that the exception can be reinjected in a
NV guest.

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