No description
Find a file
Changyuan Lyu f8fe62c678 fix(aco): deserialize byte array
Signed-off-by: Changyuan Lyu <changyuanl@google.com>
2024-07-20 17:53:03 -07:00
.github ci: avoid nightly rust being installed every time 2024-07-06 10:50:00 -07:00
alioth refactor(acpi): create FADT register MMIO devices 2024-07-19 13:33:38 -07:00
alioth-cli fix(fw_cfg): do not build fw_cfg on aarch64 2024-07-19 13:17:10 -07:00
docs docs: fix typos and format the source 2024-07-14 11:44:32 -07:00
macros fix(errors): do not auto-transform trait objects 2024-07-06 13:51:44 -07:00
serde-aco fix(aco): deserialize byte array 2024-07-20 17:53:03 -07:00
.gitignore
Cargo.lock fix(aco): deserialize byte array 2024-07-20 17:53:03 -07:00
Cargo.toml feat(hv)!: track error sources with snafu (1/n) 2024-06-09 10:11:22 -07:00
LICENSE
README.md docs: fix typos and format the source 2024-07-14 11:44:32 -07:00
rust-toolchain.toml
rustfmt.toml

Alioth

GitHub Actions Workflow Status GitHub code size in bytes Crates.io Version Crates.io License

Alioth is an experimental KVM-based type-2 hypervisor (virtual machine monitor) in Rust implemented from scratch.

Important

Disclaimer: Alioth is not an officially supported Google product.

Quick start

  • Install Alioth from source,

    cargo install alioth-cli --git https://github.com/google/alioth.git
    
  • Make an initramfs with u-root.

  • Boot a Linux kernel with 2 CPUs and 4 GiB memory,

    alioth -l info --log-to-file \
        run \
        --kernel /path/to/vmlinuz \
        --cmd-line "console=ttyS0" \
        --initramfs /path/to/initramfs \
        --mem-size 4G \
        --num-cpu 2
    

Features

  • Runs on x86_64 and aarch64.
  • Boots confidential VMs with AMD SEV, SEV-ES, or SEV-SNP, see coco.md for details.
  • VirtIO devices
    • net backed by a tap device,
    • vsock backed by host /dev/vhost-vsock,
    • blk backed by a raw-formatted image,
    • entropy backed by host /dev/urandom,
    • fs backed by virtiofsd with experimental Direct Access (DAX).
  • Other devices
    • serial console: 16450 on x86_64, pl011 on aarch64,
    • fw_cfg (QEMU Firmware Configuration Device),
    • pvpanic.

TODOs

  • device passthrough with VFIO,
  • explore a better solution to ACPI DSDT to replace the pre-compiled AML bytes,
  • increase test coverage,
  • add missing documents,
  • (long term) port Alioth to Apple's Hypervisor framework,
  • performance, performance, and performance!

Acknowledgment

The virtualization implementation in Alioth takes the following projects as references,

The error handling practice is inspired by GreptimeDB's stack_trace_debug.