Minimal KVM API sample in Rust. This is inspired by kvmsample, which is written in C.
Abstraction layers such as safe structs are intentionally avoided in this project. Instead, it calls KVM API directly to make it easier to understand how each KVM ioctls should be called. If you want safe wrappers of KVM APIs, other projects in the section below would be helpful.
# Create countdown.bin to run as a guest program
$ make
# Run countdown.bin as a KVM guest
$ cargo run -- ./countdown.bin
- KVM API Documentation
- Using the KVM API - LWN
- rust-vmm/kvm_ioctls's example
- Existing VMMs written in Rust