[PATCH] arm64/sve: Rework SVE access trap to convert state in registers

Catalin Marinas catalin.marinas at arm.com
Thu Apr 8 19:00:01 BST 2021


On Fri, 12 Mar 2021 19:03:13 +0000, Mark Brown wrote:
> When we enable SVE usage in userspace after taking a SVE access trap we
> need to ensure that the portions of the register state that are not
> shared with the FPSIMD registers are zeroed. Currently we do this by
> forcing the FPSIMD registers to be saved to the task struct and converting
> them there. This is wasteful in the common case where the task state is
> loaded into the registers and we will immediately return to userspace
> since we can initialise the SVE state directly in registers instead of
> accessing multiple copies of the register state in memory.
> 
> [...]

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64/sve: Rework SVE access trap to convert state in registers
      https://git.kernel.org/arm64/c/cccb78ce89c4

-- 
Catalin




More information about the linux-arm-kernel mailing list