]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
arm64/fpsimd: Stop using TIF_SVE to manage register saving in KVM
authorMark Brown <broonie@kernel.org>
Tue, 8 Apr 2025 18:10:01 +0000 (19:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:44:16 +0000 (07:44 +0200)
commit978c0ccf80ceaa764b5f7c6bbabf2c8ca9b20711
treea8e648b3e7c8ba454fa792ba382f679a78e067a4
parent6b3d37c9c61e3c798ff6abf4ebb197e228de70b1
arm64/fpsimd: Stop using TIF_SVE to manage register saving in KVM

[ Upstream commit 62021cc36add7b2c015b837f7893f2fb4b8c2586 ]

Now that we are explicitly telling the host FP code which register state
it needs to save we can remove the manipulation of TIF_SVE from the KVM
code, simplifying it and allowing us to optimise our handling of normal
tasks. Remove the manipulation of TIF_SVE from KVM and instead rely on
to_save to ensure we save the correct data for it.

There should be no functional or performance impact from this change.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221115094640.112848-5-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
[ Mark: trivial backport ]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/kernel/fpsimd.c
arch/arm64/kvm/fpsimd.c