No description
Find a file
Wang Ningyuan dda04eda47 Devices: trait implementation for BAR reprogram
This CL adds trait implementation for PciDevice to handle BAR
reprogramming. When BAR reprogramming is detected, the PciDevice checks
all ioevents needed, and requests ioevent registeration for events that
are in the changed domain. The requests are handled by instances of
PciDevice via the trait function ioevent_register_request.
Before the CL, ioevent re-registering is unhandled, and PciDevice is
broken without notification. After CL, an error message will appear, but
device still would not function as the added trait is not implemented.

Test: Presubmit Tests. Hotplugged virtio device triggers error
IoEventNotSupported as expected.
Bug: 271204121

Change-Id: Ibf4bc00cfdce24e508cd50b5009f148c5a49db30
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4310071
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Ningyuan Wang <ningyuan@google.com>
2023-03-10 04:17:52 +00:00
.cargo tools: Do not use pip to install python packages 2023-02-27 19:24:18 +00:00
.config tools/run_tests2: Prepare for CI usage 2023-02-09 00:09:02 +00:00
.devcontainer dev_container: Add mdformat-tables to dependency 2022-11-15 22:36:38 +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 devices: cmos: implement rtc alarm 2023-03-09 01:27:16 +00:00
acpi_tables acpi: Mark structs as repr(C, packed) 2023-02-08 21:32:43 +00:00
anti_tamper kiwi: clean anti_tamper and metrics related code 2023-01-04 00:08:27 +00:00
arch devices: cmos: implement rtc alarm 2023-03-09 01:27:16 +00:00
argh_helpers Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
base Revert "balloon: add event registration mechanism for sidecar processes." 2023-03-06 06:51:35 +00:00
bit_field crosvm: Uprev rust toolchain and dev container 2023-02-08 20:26:30 +00:00
broker_ipc Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00
common fix future incompatibilities 2023-03-08 21:57:36 +00:00
crash_report metrics: Add missing process types 2023-02-22 20:01:38 +00:00
cros_async cros_async: optimize and fix race in drop_detached_blocking_pool 2023-03-10 03:06:56 +00:00
cros_fdt cros_fdt: remove max_size from FdtWriter::finish() 2023-02-28 18:36:13 +00:00
cros_tracing cros_tracing: do not print errors in push_descriptors() 2023-02-21 20:31:28 +00:00
crosvm-fuzz devices: virtio: block: parallelize by multiple worker threads 2023-03-03 00:23:05 +00:00
crosvm_cli vhost-user: snd: Implement Windows broker & device setup 2023-02-28 21:34:01 +00:00
crosvm_control Revert "balloon: add event registration mechanism for sidecar processes." 2023-03-06 06:51:35 +00:00
crosvm_plugin Add conditional compilation for unix-only crates 2023-01-19 21:21:59 +00:00
devices Devices: trait implementation for BAR reprogram 2023-03-10 04:17:52 +00:00
disk disk: add try_clone method to DiskFile trait 2023-03-02 08:52:56 +00:00
docs/book book: Update building/testing sections with new tooling 2023-02-28 23:11:13 +00:00
e2e_tests e2e_tests: Use virtio-console to speed up tests 2023-03-08 23:16:38 +00:00
fuse devices: Add trace points for passthroughfs 2023-03-10 02:20:14 +00:00
gpu_display gpu_display: find wayland-scanner with which in build.rs 2023-02-27 21:18:21 +00:00
hypervisor Devices: trait implementation for BAR reprogram 2023-03-10 04:17:52 +00:00
infra Roll recipe dependencies (trivial). 2023-03-09 03:34:38 +00:00
io_uring bindgen: update kernel bindings to Linux 6.1 2023-02-23 21:31:44 +00:00
jail jail: seccomp: allow syscalls for panic handling 2023-03-08 08:45:01 +00:00
kernel_cmdline Rust 1.65: Fix clippy derive_partial_eq_without_eq lints 2022-12-01 01:32:30 +00:00
kernel_loader bindgen: update kernel bindings to Linux 6.1 2023-02-23 21:31:44 +00:00
kvm bindgen: update kernel bindings to Linux 6.1 2023-02-23 21:31:44 +00:00
kvm_sys hypervisor: Add get_xsave and set_xsave support to x86. 2023-03-03 00:30:04 +00:00
libcras_stub devices: snd: Use PCM device client_type and stream_type for CRAS 2023-03-02 06:22:40 +00:00
linux_input_sys crosvm: Partially convert DataInit to zerocopy (6/n) 2023-02-10 01:52:24 +00:00
logo
media media: cros-codecs: vaapi: factorize job management code of submit_picture 2023-03-02 12:34:43 +00:00
metrics metrics: Add missing process types 2023-02-22 20:01:38 +00:00
net_sys Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00
net_util virtio_sys: Update bindgen to derive zerocopy 2023-02-09 22:59:10 +00:00
power_monitor power_monitor: refactor to use ReadNotifier 2023-01-03 22:37:36 +00:00
prebuilts prebuilds/testvm: Retry downloads 2023-03-09 23:04:20 +00:00
proto_build_tools proto_build_tools: dont fail silently 2023-01-31 18:03:00 +00:00
protos Add conditional compilation for unix-only crates 2023-01-19 21:21:59 +00:00
qcow_utils Add conditional compilation for unix-only crates 2023-01-19 21:21:59 +00:00
resources resource: system_allocator: introduce GPE allocator 2023-02-06 22:02:37 +00:00
rutabaga_gfx rutabaga_gfx/ffi: patch minijail in FFI build 2023-03-10 01:32:15 +00:00
sandbox vhost-user: snd: Implement Windows broker & device setup 2023-02-28 21:34:01 +00:00
serde_keyvalue Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00
src devices: cmos: implement rtc alarm 2023-03-09 01:27:16 +00:00
swap swap: use create_sandbox_minijail for the monitor process 2023-03-02 00:42:35 +00:00
system_api Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00
tests Enable parallel execution of plugin and e2e tests 2023-01-26 20:38:57 +00:00
third_party crosvm: Partially convert DataInit to zerocopy (1/n) 2023-02-02 19:28:57 +00:00
tools prebuilds/testvm: Retry downloads 2023-03-09 23:04:20 +00:00
tpm2 Add conditional compilation for unix-only crates 2023-01-19 21:21:59 +00:00
tpm2-sys Uprev the libtpm2 to 96017dcdb110 2023-03-07 04:05:49 +00:00
tube_transporter crosvm: Uprev rust toolchain and dev container 2023-02-08 20:26:30 +00:00
usb_sys Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00
usb_util crosvm: Partially convert DataInit to zerocopy (2/n) 2023-02-07 23:08:23 +00:00
vfio_sys bindgen: update kernel bindings to Linux 6.1 2023-02-23 21:31:44 +00:00
vhost Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00
virtio_sys bindgen: update kernel bindings to Linux 6.1 2023-02-23 21:31:44 +00:00
vm_control Devices: trait implementation for BAR reprogram 2023-03-10 04:17:52 +00:00
vm_memory vm_memory: option to set MADV_DONTFORK on guest memory 2023-02-16 18:23:47 +00:00
win_audio kiwi: clean anti_tamper and metrics related code 2023-01-04 00:08:27 +00:00
win_util win_util: Expand token functionality with other types & thread tokens 2023-03-01 23:09:19 +00:00
x86_64 x86_64: fixup: Calibrate TSC when forced to do so 2023-03-10 01:17:59 +00:00
.dockerignore
.envrc Automatically register tools/ on PATH 2023-03-03 00:33:15 +00:00
.gitignore Automatically register tools/ on PATH 2023-03-03 00:33:15 +00:00
.gitmodules health-check: Add infra checks 2022-08-18 00:17:04 +00:00
.rustfmt.toml
ARCHITECTURE.md jail: create jail crate from jail_helpers.rs 2023-02-14 00:24:55 +00:00
Cargo.lock devices: Add trace points for passthroughfs 2023-03-10 02:20:14 +00:00
Cargo.toml presubmit: Add --features=default build to all platforms 2023-03-07 18:01:47 +00:00
CONTRIBUTING.md book: Reviewed CONTRIBUTING.md 2023-03-03 02:28:37 +00:00
DIR_METADATA DIR_METADATA: Add public buganizer component 2022-09-21 17:43:59 +00:00
LICENSE Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
mypy.ini
OWNERS Require council review for changes to Cargo.lock 2022-12-01 18:50:48 +00:00
OWNERS_COUNCIL Require council review for changes to Cargo.lock 2022-12-01 18:50:48 +00:00
PRESUBMIT.cfg Cleanup: Remove old, deprecated and no longer used files 2022-09-20 21:05:57 +00:00
pyproject.toml
README.chromeos.md
README.md Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00
rust-toolchain rust-toolchain: Add llvm-tools-preview 2023-02-10 20:47:41 +00:00

crosvm - The ChromeOS Virtual Machine Monitor

crosvm is a virtual machine monitor (VMM) based on Linuxs 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 doesnt 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