arm64/sme: Implement signal handling for ZT
authorMark Brown <broonie@kernel.org>
Mon, 16 Jan 2023 16:04:46 +0000 (16:04 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 20 Jan 2023 12:23:06 +0000 (12:23 +0000)
commitee072cf708048c0d718a88159ae7985dd96d316f
tree3f2388c34a6242c53ac2f9d62acc9d675b64158f
parent95fcec713259d440626526ed96ff5d3bac6179ea
arm64/sme: Implement signal handling for ZT

Add a new signal context type for ZT which is present in the signal frame
when ZA is enabled and ZT is supported by the system. In order to account
for the possible addition of further ZT registers in the future we make the
number of registers variable in the ABI, though currently the only possible
number is 1. We could just use a bare list head for the context since the
number of registers can be inferred from the size of the context but for
usability and future extensibility we define a header with the number of
registers and some reserved fields in it.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221208-arm64-sme2-v4-11-f2fa0aef982f@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/fpsimd.h
arch/arm64/include/uapi/asm/sigcontext.h
arch/arm64/kernel/signal.c