In a recent email, Paolo Bonzini discussed the roadmap for including Rust in QEMU. The current status in QEMU 9.2 shows that it compiles on all supported platforms but still requires a lot of unsafe code. However, progress is being made in Rust implementations of devices like pl011 and HPET. The email also touches on topics like build systems, avoiding undefined behavior, safe class definitions in QOM, method calls, callbacks, tracing/logging, and data structure interoperability. Furthermore, it mentions the expected features from recent versions of Rust and plans for future improvements. One surprising detail is the need for limited usage of unsafe code even after initialization.
https://lore.kernel.org/all/[email protected]/