No description
Find a file
Daniel Verkamp cf5d251863 Fix clippy::unnecessary_get_then_check warnings
Avoid .get()ting something just to check if it's present; use
.contains_key() instead (or .entry() in the case where we want to insert
an item if the key is not present).

BUG=b:344974550
TEST=tools/clippy

Change-Id: I78ee9e5a7ad9ffd693d9a50a347663444e1516a2
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5609074
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-06-10 20:01:30 +00:00
.cargo Upgrade rust to 1.73.0 2024-02-20 19:11:51 +00:00
.config
.devcontainer
.github
.vscode
aarch64 aarch64, riscv64: fix max kernel command line length 2024-06-10 17:43:02 +00:00
acpi_tables Cargo.toml: move tempfile to dev-dependencies 2024-05-07 20:00:48 +00:00
android_audio Implement virtio-snd aaudio stream to support audio in android 2024-05-31 05:32:38 +00:00
arch Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
argh_helpers
audio_streams_conformance_test audio_streams_conformance_test: remove unused minijail dep 2024-05-22 21:24:02 +00:00
audio_util
base Remove unused pub re-exports 2024-06-10 19:39:54 +00:00
base_tokio base_tokio: tube: require &mut self for send/recv 2024-06-06 23:30:53 +00:00
bit_field
broker_ipc metrics: Switch metrics from Tube to SendTube 2024-04-09 01:38:03 +00:00
common tree-wide: replace data_model::zerocopy_from_*() 2024-03-13 18:03:24 +00:00
cros_async base_tokio: tokio compatible Event and Tube types 2024-06-06 23:30:20 +00:00
cros_fdt Fix clippy::assigning_clones lints 2024-06-10 19:33:36 +00:00
cros_tracing Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
cros_tracing_types Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
crosvm_cli devices: vfio: make global container state explicit 2024-06-06 23:31:16 +00:00
crosvm_control Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
crosvm_plugin Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
devices Fix clippy::unnecessary_get_then_check warnings 2024-06-10 20:01:30 +00:00
disk Fix clippy::suspicious_open_options warnings 2024-06-10 19:39:47 +00:00
docs/book cmdline: add root option for --pmem 2024-05-17 19:15:09 +00:00
e2e_tests e2e_tests: console: simplify reading of output file 2024-06-05 22:55:10 +00:00
ext2 ext2: Set up root dir and lost+found 2024-06-10 02:26:46 +00:00
fuse Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
fuzz Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
gpu_display Support cursor in android display 2024-05-28 17:45:38 +00:00
hypervisor hypervisor: change VcpuX86_64::interrupt to only accept u8 vector 2024-06-10 18:43:56 +00:00
infra Roll recipe dependencies (trivial). 2024-06-10 16:37:39 +00:00
io_uring Fix clippy::suspicious_open_options warnings 2024-06-10 19:39:47 +00:00
jail Implement virtio-snd aaudio stream to support audio in android 2024-05-31 05:32:38 +00:00
kernel_cmdline Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
kernel_loader Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
kvm Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
kvm_sys Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
libcras_stub Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
linux_input_sys Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
logo
media Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
metrics metrics: fix dead_code warning in test 2024-06-10 20:01:23 +00:00
metrics_events metric_events & src: add metric for VcpuShutdown. 2024-05-31 18:25:50 +00:00
net_sys Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
net_util Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
perfetto Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
power_monitor power_monitor: Filter out some power signals 2024-03-22 02:23:57 +00:00
prebuilts Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
proto_build_tools
protos
resources Fix clippy::unnecessary_get_then_check warnings 2024-06-10 20:01:30 +00:00
riscv64 aarch64, riscv64: fix max kernel command line length 2024-06-10 17:43:02 +00:00
rutabaga_gfx Remove unused pub re-exports 2024-06-10 19:39:54 +00:00
sandbox Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
serde_keyvalue Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
src Fix clippy::assigning_clones lints 2024-06-10 19:33:36 +00:00
swap swap: replace let-else with question mark operator 2024-06-10 19:30:30 +00:00
system_api devices: virtio-fs: enable dbus crate stdfd feature 2024-03-08 22:14:51 +00:00
tests
third_party vmm_vhost: fix clippy::option_map_or_err_ok 2024-06-10 19:50:12 +00:00
tools Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
tube_transporter Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
usb_sys
usb_util usb_util: fix clippy::unnecessary_get_then_check 2024-06-06 00:54:51 +00:00
vendor vendor/generic/metrics: document API methods. 2024-06-04 21:46:46 +00:00
vfio_sys
vhost Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
virtio_sys devices: virtio: Support virtio suspend 2024-05-02 01:20:09 +00:00
vm_control Remove unused pub re-exports 2024-06-10 19:39:54 +00:00
vm_memory Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
win_audio virtio-snd: windows: Pass audio_client_guid to IAudioClient::Initialize 2024-05-29 16:27:49 +00:00
win_util Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
x86_64 Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00
.dockerignore
.envrc
.gitattributes
.gitignore
.gitmodules
.rustfmt.toml rustfmt: wrap comments 2024-02-15 23:30:13 +00:00
ARCHITECTURE.md
Cargo.lock Cargo.lock: update downcast-rs v1.2.0 -> v1.2.1 2024-06-07 21:08:26 +00:00
Cargo.toml base_tokio: tokio compatible Event and Tube types 2024-06-06 23:30:20 +00:00
CONTRIBUTING.md docs: update ChromeOS developer guide links 2024-03-21 17:41:27 +00:00
DIR_METADATA
LICENSE
mypy.ini
OWNERS crosvm: add idanr@ to OWNERS 2024-05-31 00:11:01 +00:00
OWNERS_COUNCIL OWNERS_COUNCIL: Update council reviewers 2024-05-29 18:36:55 +00:00
PRESUBMIT.cfg
pyproject.toml
README.chromeos.md
README.md
rust-toolchain Upgrade rust to 1.73.0 2024-02-20 19:11:51 +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