Clone this repo:
  1. 034134b kvm-sys: fix alignment and size errors in bindings by Zach Reizner · 8 days ago master
  2. 30055ec kvm-sys: add arm bindings by Zach Reizner · 8 days ago
  3. 09a0a32 kvm-sys: start low-level kvm bindings by Zach Reizner · 11 days ago
  4. be9feaa add LICENSE and README by Zach Reizner · 12 days ago
  5. 8bd0267 Initial empty repository by Bernie Thompson · 2 weeks ago release-R59-9460.B stabilize-9460.4.B

Chrome OS KVM

This component, known as crosvm, runs untrusted operating systems along with virtualized devices. No actual hardware is emulated. This only runs VMs through the Linux's KVM interface. What makes crosvm unique is a focus on safety within the programming language and a sandbox around the virtual devices to protect the kernel from attack in case of an exploit in the devices.

Overview

The crosvm source code is organized into crates, each with their own unit tests. These crates are:

  • kvm-sys low-level (mostly) auto-generated structures and constants for using KVM
  • kvm unsafe, low-level wrapper code for using kvm-sys
  • crosvm the top-level binary front-end for using crosvm

Usage

Currently there is no front-end, so the best you can do is run cargo test in each crate.