sys_util: Add TempDir class

This will be used to create temporary directories that are lifetime
managed for running jails.

Change-Id: I35dfeae76a211c820db090b65baf72277d9e2d8a
Signed-off-by: Dylan Reid <>
Reviewed-by: Zach Reizner <>
2 files changed
tree: 108125e2828fd64320cd2823e97b7e9a048f2ebf
  1. .gitignore
  4. io_jail/
  5. kernel_loader/
  6. kvm/
  7. kvm_sys/
  8. src/
  9. sys_util/
  10. syscall_defines/
  11. x86_64/

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.