[PATCH v4 04/21] arm64/simd: Add scoped guard API for kernel mode SIMD

Ard Biesheuvel ardb at kernel.org
Fri Oct 31 07:05:51 PDT 2025


On Fri, 31 Oct 2025 at 14:55, Jonathan Cameron
<jonathan.cameron at huawei.com> wrote:
>
> On Fri, 31 Oct 2025 11:39:03 +0100
> Ard Biesheuvel <ardb+git at google.com> wrote:
>
> > From: Ard Biesheuvel <ardb at kernel.org>
> >
> > Encapsulate kernel_neon_begin() and kernel_neon_end() using a 'ksimd'
> > cleanup guard. This hides the prototype of those functions, allowing
> > them to be changed for arm64 but not ARM, without breaking code that is
> > shared between those architectures (RAID6, AEGIS-128)
> >
> > It probably makes sense to expose this API more widely across
> > architectures, as it affords more flexibility to the arch code to
> > plumb it in, while imposing more rigid rules regarding the start/end
> > bookends appearing in matched pairs.
> >
> > Reviewed-by: Kees Cook <kees at kernel.org>
> > Reviewed-by: Eric Biggers <ebiggers at kernel.org>
> > Signed-off-by: Ard Biesheuvel <ardb at kernel.org>
> Very nice.
>
> FWIW I looked at all the usecases and other than a couple of trivial
> comments on individual patches they look good to me.
>
> Reviewed-by: Jonathan Cameron <jonathan.cameron at huawei.com>
> For patches 4-19
>

Thanks!



More information about the linux-arm-kernel mailing list