Uses old Rust 2015
|0.11.0||Nov 18, 2021|
|0.9.0||May 14, 2021|
|0.8.0||Mar 8, 2021|
|0.6.0||Dec 3, 2020|
|0.0.1||Feb 28, 2019|
#209 in Unix APIs
28,170 downloads per month
Used in fewer than 8 crates
The kvm-ioctls crate provides safe wrappers over the KVM API, a set of ioctls used for creating and configuring Virtual Machines (VMs) on Linux. The ioctls are accessible through four structures:
Kvm- wrappers over system ioctls
VmFd- wrappers over VM ioctls
VcpuFd- wrappers over vCPU ioctls
DeviceFd- wrappers over device ioctls
For further details check the KVM API as well as the code documentation.
The kvm-ioctls can be used on x86_64 and aarch64. Right now the aarch64 support is considered experimental. For a production ready version, please check the progress in the corresponding GitHub issue.
Running the tests
Each individual test runs in a container. To reproduce a test locally, you can use the dev-container on both x86 and arm64.
docker run --device=/dev/kvm \ -it \ --security-opt seccomp=unconfined \ --volume $(pwd)/kvm-ioctls:/kvm-ioctls \ rustvmm/dev:v5 cd kvm-ioctls/ cargo test
For more details about the integration tests that are run for
check the rust-vmm-ci readme.