]> 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>
Fri, 4 Apr 2025 13:23:37 +0000 (14:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:43:59 +0000 (10:43 +0200)
commit2fb83650176082874849214481050f30fee834ef
tree79d44aebad212b12f25303f7b8ec24099b0b48f7
parent254fe3a16299b91a1506b50771128e988737b9ba
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