Re: [PATCH 1/3] arm64: rust: Enable Rust support for AArch64

Miguel Ojeda
2023-01-31T18:57:13Z

On Tue, Jan 31, 2023 at 5:19 PM Will Deacon <will@kernel.org> wrote:
>
> Please confirm that this is the case, but I really think we should be
> aiming for that rather than starting off my specifying this stuff manually.

Let's see what Jamie thinks and if he can give it a try.

> One thing I ran into while playing around is that 128-bit types aren't
> supported with ffi unless '-A improper-ctypes' is passed. Given that we
> use '__uint128_t' to represent the fpsimd state, I think this is probably
> something which will crop up as an issue.

Thanks for giving it a go. With what Björn has explained (I see the PR
he linked has `user_fpsimd_struct` as a test case, which is nice), I
guess it should be fine. We could also add some tests on our side to
make sure (which we probably want to do anyway for other reasons).

Added to https://github.com/Rust-for-Linux/linux/issues/355.

Cheers,
Miguel