Re: [PATCH 0/2] Add hw_random Rust bindings

From: Manos Pitsidianakis

Date: Fri May 29 2026 - 16:38:58 EST


Hi Miguel,

On Fri, 29 May 2026 23:02, Miguel Ojeda <miguel.ojeda.sandonis@xxxxxxxxx> wrote:
On Fri, May 29, 2026 at 5:50 PM Manos Pitsidianakis
<manos@xxxxxxxxxxxxxx> wrote:

A virtio-rng Rust driver that uses them will be submitted as a separate
series since it also depends on the virtio abstractions series.

Please include that at least as a reference to a branch or similar,
since in most cases the user is needed to evaluate abstractions etc.


Good point, thanks.

My WIP branch is here https://github.com/epilys/linux/tree/b4/rust-virtio-rng (HEAD is the driver that uses the abstraction in this series)

It uses atomics instead of a spinlock since we can't sleep during virtio driver probe. I didn't want to overcomplicate it by deferring all the sleeping work to a workqueue, but maybe it's a necessity until we get spinlocks that can disable IRQs.



Thanks!

Cheers,
Miguel