Interfacing Rust with Xen
summary
Proof-of-concept Rust library issues raw Xen hypercalls (implemented the XEN HYPERCALL: console read case) and runs in both hosted and freestanding environments by splitting into no_std and std parts. A small CLI called XR exercises the flow; a generator in a GitLab repo converts a simple TOML spec into Rust structs and C headers (primitive and pointer types work; unions/complex types are WIP). Goal is a single Rust library replacing C dynamic+static layers with generated, mostly-safe FFI.
AI-written summary · about
chapters (10)
- 0:00Introduction to Rust and Xen
- 1:07Why Rust for low-level work
- 3:13Goals for Rust-Xen bindings
- 5:23Current Xen tooling limitations
- 6:06Proof of concept design
- 8:13XR command line tool demo
- 9:18Hypercall struct compatibility
- 11:30Automating bindings with spec
- 14:42Future plans and upstreaming
- 15:46Q&A on library merging








