Skip to content

MatiasVara/kvm-ioctls

This branch is 210 commits behind rust-vmm/kvm:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d80807f · Mar 14, 2024
Oct 11, 2023
Nov 18, 2021
Mar 4, 2024
Mar 14, 2024
Nov 11, 2019
Jun 27, 2019
Mar 4, 2024
Jun 30, 2023
Jan 3, 2024
Apr 11, 2019
Apr 11, 2019
Nov 2, 2022
Apr 11, 2019
Oct 26, 2021
Jun 4, 2020
Mar 14, 2024

Repository files navigation

Build Status crates.io

kvm-ioctls

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.

Supported Platforms

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

Our Continuous Integration (CI) pipeline is implemented on top of Buildkite. For the complete list of tests, check our CI pipeline.

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:v16
cd kvm-ioctls/
cargo test

For more details about the integration tests that are run for kvm-ioctls, check the rust-vmm-ci readme.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%