Skip to content

cloud-hypervisor/kvm-ioctls

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Alexandra IordacheSamuel Ortiz
Alexandra Iordache
and
Samuel Ortiz
Jan 28, 2020
ee9a81a · Jan 28, 2020
Apr 8, 2019
Jul 1, 2019
Jan 13, 2020
Nov 11, 2019
Jun 27, 2019
Jan 28, 2020
Jun 12, 2019
Jan 28, 2020
Apr 11, 2019
Apr 11, 2019
Jun 27, 2019
Apr 11, 2019
Nov 11, 2019

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:v2
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

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%