Clone this repo:
  1. 9195ec9 kernel_loader: Add loading of 64 bit elf x86 vmlinux by Dylan Reid · 7 days ago master
  2. 67030be x86_64: Add x86_64 setup code by Dylan Reid · 12 days ago stabilize-9554.B
  3. abd3707 x86_64: Add by Dylan Reid · 13 days ago
  4. 7e742df kvm: Add reg setting to kvm by Dylan Reid · 13 days ago
  5. 5d08460 sys_util: Add struct utils by Dylan Reid · 2 weeks ago

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.


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


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