0
Fork 0
mirror of https://github.com/Droid-VM/crosvm.git synced 2026-11-17 06:58:03 +00:00
Modified crosvm from AOSP
  • Rust 95%
  • C 2.4%
  • Python 1.7%
  • Shell 0.5%
Find a file
lateautumn233 a569df4ba6 simplefb: no cache walk on a tick that reads nothing
Once a GPU screen's own scanout presents, its boot fallback ("#boot")
has no consumer and the bridge only hashes the framebuffer once a second
for liveness, but the cache invalidation before it still ran on every
tick: the whole framebuffer (about 130k lines at 1920x1080) poll_hz
times a second for nobody. It now runs only on a tick that reads (a
consumer, a liveness pass that is due, or a dump).

macOS guest, login window, 30 s: the simplefb_display thread went from
3.2% to 0.2% of a core. The fallback still comes back when the guest's
scanout stops (a panic screen stays visible).
History 2026-11-16 01:20:53 -05:00
.cargo Enable clippy for android code 2024-07-09 20:43:44 +00:00
.config dev_container: Pass through NEXTEST_PROFILE 2023-12-14 19:01:30 +00:00
.devcontainer dev_container: Replace better toml extension 2023-07-27 23:37:15 +00:00
.github Cleanup: Remove old, deprecated and no longer used files 2022-09-20 21:05:57 +00:00
.vscode Document feature flags and introduce new feature sets 2022-10-14 20:31:19 +00:00
aarch64 aarch64: --mbi-spis gives PCI devices MSI/MSI-X on Gunyah through GIC MBI SPIs 2026-11-10 17:50:46 -05:00
acpi_tables Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-25 18:10:03 +00:00
android_audio fix(audio): wait for AAudio playback to start before accepting PCM 2026-11-12 16:25:56 +08:00
android_camera camera: a mode the guest sets mid-stream is judged by the request the camera ran, not by a count of frames (D47, D39) 2026-10-28 06:23:29 +08:00
android_codec virtio-media: MediaCodec decoders within a pixel budget, asked to decode as fast as they can 2026-11-04 11:20:40 -05:00
arch aarch64: --mbi-spis gives PCI devices MSI/MSI-X on Gunyah through GIC MBI SPIs 2026-11-10 17:50:46 -05:00
argh_helpers ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
audio_streams_conformance_test audio_streams_conformance_test: remove unused minijail dep 2024-05-22 21:24:02 +00:00
audio_util ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
base crosvm: raise the open files limit to the system's ceiling at startup 2026-11-03 17:57:29 +08:00
base_tokio ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
bit_field ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
broker_ipc ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
common virtio-snd: an AAudio backend with named endpoints, and a device that can drop root 2026-08-30 14:09:31 +08:00
cros_async virtio-snd: an AAudio backend with named endpoints, and a device that can drop root 2026-08-30 14:09:31 +08:00
cros_fdt Merge remote-tracking branch 'aosp/upstream-main' 2025-03-06 13:06:28 -08:00
cros_tracing ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
cros_tracing_types ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
crosvm_cli ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
crosvm_control UPSTREAM: crosvm_control: add crosvm_get_vm_descriptor API 2025-03-18 23:55:05 +00:00
crosvm_device_only gpu_display: a WebRTC display output backend (--webrtc-server): one screen served to browsers, hardware-encoded 2026-11-04 11:20:40 -05:00
crosvm_plugin [clippy] crosvm_plugin: explicitly discard Box::into_raw() result 2025-02-24 18:29:34 -08:00
cuttlefish Add common_crosvm script for musl 2022-12-01 14:59:02 -08:00
devices fix(gpu): size Android cursor surfaces from guest resources 2026-11-12 04:07:58 +08:00
disk disk: qcow2 zero clusters, a C zstd shim, and a refusal to open snapshots 2026-08-30 13:09:47 +08:00
docs/book virtio-input: motion sensors fed by the host's own sensors, which a writer on the socket may override 2026-10-27 03:29:01 +08:00
droidvm-shim gunyah: a protected VM whose RAM the host can still reach, via a boot shim 2026-08-31 13:44:22 +08:00
e2e_tests Merge remote-tracking branch 'aosp/upstream-main' 2025-03-06 13:06:28 -08:00
ext2 Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-25 18:10:03 +00:00
fuse Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-25 18:10:03 +00:00
fuzz [clippy] clean up redundant lifetime annotations 2025-02-11 16:14:19 -08:00
gpu_display fix(gpu): size Android cursor surfaces from guest resources 2026-11-12 04:07:58 +08:00
hypervisor feat(gpu): enhance logging for resource management 2026-10-28 06:23:29 +08:00
infra Roll recipe dependencies (trivial). 2025-03-05 10:44:20 -08:00
io_uring Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-19 17:56:55 +00:00
jail fix(syslog): invalidate per-process state after fork 2026-06-23 20:50:00 +08:00
kernel_cmdline ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
kernel_loader Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-25 18:10:03 +00:00
kvm Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-25 18:10:03 +00:00
kvm_sys Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-25 18:10:03 +00:00
libcras_stub ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
linux_input_sys Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-25 18:10:03 +00:00
logo README: Use PNG logo image 2021-10-29 01:56:23 +00:00
media [clippy] clean up redundant lifetime annotations 2025-02-11 16:14:19 -08:00
metrics ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
metrics_events ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
net_sys ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
net_util Merge remote-tracking branch 'aosp/upstream-main' 2025-03-06 13:06:28 -08:00
patches ANDROID: remove redundant android_display_client patch 2025-02-10 19:24:10 -08:00
perfetto crosvm: upgrade zerocopy to 0.8 2025-02-24 11:35:51 -08:00
power_monitor power_monitor: a sysfs backend, so the goldfish battery shows the host's charge without ChromeOS powerd 2026-10-28 23:00:50 +08:00
prebuilts Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
proto_build_tools Cargo.toml: upgrade protobuf 2.x -> 3.x 2023-04-28 19:32:01 +00:00
protos ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
resources gunyah: boot-blessed GPU pools, shared once before start instead of per blob 2026-08-31 13:44:23 +08:00
riscv64 linux: add simplefb supports 2026-03-24 04:23:14 +08:00
rutabaga_gfx feat(gpu): enhance logging for resource management 2026-10-28 06:23:29 +08:00
sandbox Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
serde_keyvalue Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-19 17:56:55 +00:00
snapshot ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
src simplefb: no cache walk on a tick that reads nothing 2026-11-16 01:20:53 -05:00
swap Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-19 17:56:55 +00:00
system_api Cargo.lock: update protobuf v3.2.0 -> v3.6.0 2024-10-23 20:11:19 +00:00
tests Reformat comments 2024-02-15 23:30:13 +00:00
third_party gpu_display: a WebRTC display output backend (--webrtc-server): one screen served to browsers, hardware-encoded 2026-11-04 11:20:40 -05:00
tools Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-25 18:10:03 +00:00
tube_transporter Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
usb_sys ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
usb_util usb: a transfer too big for the DMA window goes through a plain buffer 2026-09-12 13:27:31 +08:00
vendor Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-25 18:10:03 +00:00
vfio_sys Merge remote-tracking branch 'aosp/upstream-main' into merge 2025-02-25 18:10:03 +00:00
vhost ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
virtio_sys droidvm-gpu: removed; an XNU guest's Metal now runs on the virtio GPU's DRM context alone 2026-10-26 21:48:49 +08:00
vm_control aarch64: --mbi-spis gives PCI devices MSI/MSI-X on Gunyah through GIC MBI SPIs 2026-11-10 17:50:46 -05:00
vm_memory pools: media_host and media_guest, the two virtio-media buffer pools 2026-10-28 05:59:58 +08:00
win_audio win_audio: remove pointless returns 2025-02-24 18:58:51 -08:00
win_util Replace ::max_value() with ::MAX 2024-07-09 23:26:03 +00:00
x86_64 linux: add simplefb supports 2026-03-24 04:23:14 +08:00
.dockerignore add docker supported builds and tests 2019-05-15 13:36:19 -07:00
.envrc Automatically register tools/ on PATH 2023-03-03 00:33:15 +00:00
.gitattributes config: force lf as line endings 2023-11-07 17:38:58 +00:00
.gitignore gunyah: a protected VM whose RAM the host can still reach, via a boot shim 2026-08-31 13:44:22 +08:00
.rustfmt.toml rustfmt: wrap comments 2024-02-15 23:30:13 +00:00
ADDITIONAL-PERMISSIONS licensing: GPL-2.0-or-later for DroidVM's parts, plus an upstreaming grant 2026-08-30 13:07:02 +08:00
android-fork-stats.sh crosvm merge: automate all blockers this week 2025-01-28 18:24:38 +00:00
android-merge-1-setup.sh Change install-deps path for Android merge script 2025-02-18 15:31:09 -08:00
android-merge-2-cargo-embargo.sh ANDROID: android-merge-2-cargo-embargo.sh: Detect more missing packages 2024-09-20 20:00:38 +00:00
Android.bp gpu_display: a WebRTC display output backend (--webrtc-server): one screen served to browsers, hardware-encoded 2026-11-04 11:20:40 -05:00
ARCHITECTURE.md docs: book: update architecture docs 2023-06-01 22:37:17 +00:00
Cargo.lock virtio-snd: an AAudio backend with named endpoints, and a device that can drop root 2026-08-30 14:09:31 +08:00
Cargo.toml gpu_display: a WebRTC display output backend (--webrtc-server): one screen served to browsers, hardware-encoded 2026-11-04 11:20:40 -05:00
cargo2android_defaults.bp ANDROID: simplify crosvm_defaults 2025-02-10 18:41:03 -08:00
cargo2android_module.bp.patch Enable GPU feature 2024-02-26 11:31:15 +09:00
cargo_embargo.json Merge "ANDROID: shrink the rutabaga_gfx patch file" into main 2025-03-06 15:12:24 -08:00
CONTRIBUTING.md licensing: GPL-2.0-or-later for DroidVM's parts, plus an upstreaming grant 2026-08-30 13:07:02 +08:00
DIR_METADATA Add arcvm_gki_cq test plan 2024-08-21 18:24:58 +00:00
LICENSE Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
LICENSE.GPL-2.0 licensing: GPL-2.0-or-later for DroidVM's parts, plus an upstreaming grant 2026-08-30 13:07:02 +08:00
LICENSING.md licensing: GPL-2.0-or-later for DroidVM's parts, plus an upstreaming grant 2026-08-30 13:07:02 +08:00
METADATA Add METADATA to crosvm: BSD+MIT=NOTICE 2020-04-29 11:54:10 -07:00
mypy.ini Add python configs for consistency between IDE and CI 2022-08-16 18:33:23 +00:00
OWNERS OWNERS: Remove acourbot@ 2025-02-26 19:48:32 -08:00
OWNERS.android Add khei@ to OWNERS 2024-11-05 21:18:07 +00:00
OWNERS_COUNCIL OWNERS_COUNCIL: Update council reviewers 2024-05-29 18:36:55 +00:00
PRESUBMIT.cfg Cleanup: Remove old, deprecated and no longer used files 2022-09-20 21:05:57 +00:00
PREUPLOAD.cfg bpfmt files on upload 2022-04-11 17:41:40 +00:00
pyproject.toml Add python configs for consistency between IDE and CI 2022-08-16 18:33:23 +00:00
README.chromeos.md crosvm: update book and doc links to crosvm.dev 2022-07-29 22:54:01 +00:00
README.md Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00
rust-toolchain rust-toolchain: update to Rust 1.77.2 2024-06-18 18:21:17 +00:00
TEST_MAPPING Fix test mapping test name. 2024-02-06 01:05:46 +00:00

crosvm - The ChromeOS Virtual Machine Monitor

crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the ChromeOS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.

crosvm is currently used to run Linux/Android guests on ChromeOS devices.

Logo