Re: [TECH TOPIC] Rust for Linux

Viresh Kumar
2021-07-09T07:03:32Z

On 08-07-21, 21:49, Linus Walleij wrote:
> I also Cced Viresh Kumar who I think is thinking about Rust these
> days, using it for one end of a virtio pipe (IIUC) and Andy also brought
> up virtio, but now on the other side, in the kernel.

Thanks Linus.

Just so everyone is aware of our work with Rust, we (at Linaro's
Project Stratos [1] initiative) are looking to write Hypervisor
agnostic low-level virtio based vhost-user backends, which can be used
to process low-level (like I2C, GPIO, RPMB, etc) requests from guests
running on VMs to the host having access to the real hardware.

We are still working on getting the virtio GPIO spec merged, but the
I2C stuff has progressed well. Here is the virtio backend I have
written for I2C in Rust:

https://github.com/vireshk/vhost-device

It is under review [2] currently to get merged in rust-vmm project.

--
viresh

[1] https://linaro.atlassian.net/wiki/spaces/STR/overview
[2] https://github.com/rust-vmm/vhost-device/pull/1