linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
To: Andreas Hindborg <a.hindborg@kernel.org>
Cc: Matthew Wilcox <willy@infradead.org>,
	Daniel Gomez <da.gomez@kernel.org>,
	linux-mm@kvack.org,  lsf-pc@lists.linux-foundation.org,
	Alice Ryhl <aliceryhl@google.com>,
	 Andrew Morton <akpm@linux-foundation.org>,
	Daniel Gomez <da.gomez@samsung.com>,
	gost.dev@samsung.com,  Greg KH <gregkh@linuxfoundation.org>,
	Julia Lawall <julia.lawall@inria.fr>,
	 Kairui Song <kasong@tencent.com>,
	Luis Chamberlain <mcgrof@kernel.org>,
	Miguel Ojeda <ojeda@kernel.org>,
	 rust-for-linux@vger.kernel.org,
	Tamir Duberstein <tamird@gmail.com>
Subject: Re: [LSF/MM/BPF TOPIC] Evaluating Rust for XArray
Date: Tue, 17 Feb 2026 21:14:52 +0100	[thread overview]
Message-ID: <CANiq72nTOpGw6JhrMLK47+7TCJjrLRdNebctrmj5xO6yqAqSuQ@mail.gmail.com> (raw)
In-Reply-To: <87bjhncl7j.fsf@kernel.org>

On Tue, Feb 17, 2026 at 6:51 PM Andreas Hindborg <a.hindborg@kernel.org> wrote:
>
> We can, and should, start evaluating if we
> can deploy Rust in this area now. We might find that we are lacking
> something from the Rust language to do what we want. We can work with
> the Rust developers to make sure that the Rust language gets all the
> bells and whistles that it needs, to support the use cases we have for
> the Linux kernel.

To clarify for others that may not have the context...

We are already working with upstream Rust (and have been for years
now) on improving the Rust language for the Linux kernel. We have
regular meetings with them every two weeks, and have a shared roadmap.

To give a sense of the collaboration status, some major language
features are getting developed with/for/by the Linux kernel and the
kernel is even built in their pre-merge CI.

In terms of discovering features needed, I don't think there will be
big surprises there, given all the work done so far. But if the plan
is to expose a C API, then we may actually find we want new things
from the C language instead! :)

Technically, adding Rust "core" code can be done today, whether for
Rust callers only (which as Tamir says is where a lot of advantages
really show) or for C callers too (where a "native Rust"
implementation can be simpler than dealing with "abstractions" of C
APIs).

So it is all a matter of maintainers being OK with the costs. To me,
this is similar to the "Rust reference drivers" proposal, but for
currently non-configurable parts of the kernel:

    https://rust-for-linux.com/rust-reference-drivers

Cheers,
Miguel


  reply	other threads:[~2026-02-17 20:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-17 14:28 Daniel Gomez
2026-02-17 14:41 ` Matthew Wilcox
2026-02-17 17:51   ` Andreas Hindborg
2026-02-17 20:14     ` Miguel Ojeda [this message]
2026-02-18  8:47       ` Andreas Hindborg
2026-02-17 20:18     ` Miguel Ojeda
2026-02-18 11:24       ` Daniel Gomez
2026-02-17 14:44 ` Tamir Duberstein
2026-02-17 18:57   ` Andreas Hindborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CANiq72nTOpGw6JhrMLK47+7TCJjrLRdNebctrmj5xO6yqAqSuQ@mail.gmail.com \
    --to=miguel.ojeda.sandonis@gmail.com \
    --cc=a.hindborg@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=aliceryhl@google.com \
    --cc=da.gomez@kernel.org \
    --cc=da.gomez@samsung.com \
    --cc=gost.dev@samsung.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=julia.lawall@inria.fr \
    --cc=kasong@tencent.com \
    --cc=linux-mm@kvack.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    --cc=mcgrof@kernel.org \
    --cc=ojeda@kernel.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=tamird@gmail.com \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox