arm64/fpsimd: Stop using TIF_SVE to manage register saving in KVM
authorMark Brown <broonie@kernel.org>
Tue, 15 Nov 2022 09:46:36 +0000 (09:46 +0000)
committerWill Deacon <will@kernel.org>
Tue, 29 Nov 2022 15:01:56 +0000 (15:01 +0000)
commit62021cc36add7b2c015b837f7893f2fb4b8c2586
tree684863acc9ab210ca32104830541faabda103033
parentdeeb8f9a80fdae5a62525656d65c7070c28bd3a4
arm64/fpsimd: Stop using TIF_SVE to manage register saving in KVM

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>
arch/arm64/kernel/fpsimd.c
arch/arm64/kvm/fpsimd.c