crosvm/hypervisor
George Burgess IV cdaf2bd57f kvm: add mut to mutable binding
`KVM_CREATE_DEVICE` turns into an `ioctl` that mutates `device`, so
`device` must be declared as `mut`. Rust 1.78 forwards `device.fd == 0`
to the `Ok(...)` return, which made this incorrect code more visible.

BUG=b:361302729
TEST=Built & ran with Rust 1.78.

Change-Id: Idf99228b67c657351681adcaec563dd021fbe451
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5838113
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
2024-09-05 21:11:59 +00:00
..
hypervisor_test_macro hypervisor: convenient macro to generate an array from inline assemblies 2024-05-21 19:31:17 +00:00
src kvm: add mut to mutable binding 2024-09-05 21:11:59 +00:00
tests Update a few older VM tests to work with more functional HAXM 2024-08-22 22:26:16 +00:00
Cargo.toml hypervisor: TLB flush test 2024-07-10 20:42:34 +00:00
README.md hypervisor/README.md: add qualcomm contacts for gunyah 2023-11-29 19:20:17 +00:00

Hypervisor Support

Multiple hypervisor backends are supported. See Advanced Usage for overriding the default backend.

Hypervisors added to crosvm must meet the following requirements:

  • Hypervisor code must be buildable in crosvm upstream.
    • Within reason, crosvm maintainers will ensure the hypervisor's code continues to build.
  • Hypervisors are not required to be tested upstream.
    • We can't require testing upstream because some hypervisors require specialized hardware.
    • When not tested upstream, the hypervisor's maintainers are expected to test it downstream. If a change to crosvm breaks something downstream, then the hypervisor's maintainers are expected to supply the fix and can't expect a revert of the culprit change to be accepted upstream.

KVM

  • Platforms: Linux
  • Tested upstream: yes

KVM is crosvm's preferred hypervisor for Linux.

WHPX

HAXM

Android Specific

The hypervisors in this section are used as backends of the Android Virtualization Framework.

Geniezone

Gunyah