No description
Find a file
Alexandre Courbot 8b75feb12f serde_keyvalue: more natural signed number parsing
Support parsing negative numbers with a specified radix as e.g.
`-0xff00` instead of `0x-ff00`.  This is a potentially breaking change
but I don't believe anyone made use of the former syntax anyway.

The new number parser has the nice side-effect of removing some extra
code, and also signaling parsing errors more accurately, so that's an
added bonus. On the other hand we lose the distinction between "invalid
number" and "expected number", but that distinction was dubious anyway
so losing it is for the better IMHO.

BUG=b:218223240
TEST=cargo test -p serde_keyvalue

Change-Id: I6b2943ecd0df92071afe0682b339dcf5b59e2826
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3853315
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: Alexandre Courbot <acourbot@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
Reviewed-by: Tatsuyuki Ishi <ishitatsuyuki@google.com>
2022-08-27 03:27:48 +00:00
.cargo health-check: Add check for newline at ends of files 2022-08-18 00:17:04 +00:00
.devcontainer dev_container: Use host UID & GID for user in container 2022-08-23 23:16:09 +00:00
.github github: update contributing link 2022-07-29 22:54:01 +00:00
.vscode Add rust-analyzer config to .vscode/settings.json 2022-08-16 23:08:35 +00:00
aarch64 crosvm: Preserve platform devices in RunnableLinuxVm 2022-08-26 08:41:37 +00:00
acpi_tables aml: Update OpRegion to take Aml as offset and length 2022-08-23 05:28:38 +00:00
anti_tamper crosvm: upstream windows src 2022-07-19 20:58:59 +00:00
arch x86_64: Generate ACPI content for Virtio MMIO device 2022-08-26 15:39:02 +00:00
argh_helpers crosvm: Fix Windows arg parsing 2022-08-25 20:31:25 +00:00
base crosvm: resync with downstream after running clippy 2022-08-25 20:45:12 +00:00
bin Deprecate old dev tooling scripts 2021-11-02 22:23:03 +00:00
bit_field Remove redundant {self} imports 2022-08-01 21:27:54 +00:00
broker_ipc Reformat imports 2022-07-28 00:15:50 +00:00
ci/kokoro ci: skip choco checksum 2022-07-13 17:21:48 +00:00
common audio_streams_conformance_test: add playback test for NoopStream 2022-08-22 08:17:59 +00:00
cros_async cros_async: fix doc test failing 2022-08-16 02:09:32 +00:00
crosvm-fuzz Reformat imports 2022-07-28 00:15:50 +00:00
crosvm_control crosvm: update book and doc links to crosvm.dev 2022-07-29 22:54:01 +00:00
crosvm_plugin Remove redundant {self} imports 2022-08-01 21:27:54 +00:00
devices x86_64: Generate ACPI content for Virtio MMIO device 2022-08-26 15:39:02 +00:00
disk disk: make AsyncDisk take a dynamic BackingMemory 2022-08-24 20:03:09 +00:00
docs/book docs: books: update instructions for using ffmpeg in the guest 2022-08-24 00:31:39 +00:00
fuse Remove redundant {self} imports 2022-08-01 21:27:54 +00:00
gpu_display gpu_display: rework build.rs for cross compilation 2022-08-19 22:43:07 +00:00
hypervisor crosvm: resync with downstream after running clippy 2022-08-25 20:45:12 +00:00
infra Roll recipe dependencies (trivial). 2022-08-26 13:30:17 +00:00
integration_tests dev_container: Use host UID & GID for user in container 2022-08-23 23:16:09 +00:00
io_uring Reformat imports 2022-07-28 00:15:50 +00:00
kernel_cmdline Reformat imports 2022-07-28 00:15:50 +00:00
kernel_loader Reformat imports 2022-07-28 00:15:50 +00:00
kvm Reformat imports 2022-07-28 00:15:50 +00:00
kvm_sys Reformat imports 2022-07-28 00:15:50 +00:00
libcras_stub crosvm: migrate to Rust 2021 edition 2022-03-09 01:16:03 +00:00
linux_input_sys Revert "x display: ST event emulation for MT events" 2022-08-09 00:11:50 +00:00
logo README: Use PNG logo image 2021-10-29 01:56:23 +00:00
media media: libva: open DRM fd as O_RDWR 2022-08-24 01:15:19 +00:00
metrics crosvm: resync with downstream after running clippy 2022-08-25 20:45:12 +00:00
net_sys Reformat imports 2022-07-28 00:15:50 +00:00
net_util crosvm: resync with downstream after running clippy 2022-08-25 20:45:12 +00:00
power_monitor Reformat imports 2022-07-28 00:15:50 +00:00
protos Remove redundant {self} imports 2022-08-01 21:27:54 +00:00
qcow_utils Remove redundant {self} imports 2022-08-01 21:27:54 +00:00
resources resources: optimize region coalescing 2022-08-03 02:09:50 +00:00
rutabaga_gfx rutabaga_gfx: update Vulkano to match ToT 2022-08-26 20:57:17 +00:00
seccomp gpu: allow F_GETFD arg in fcntl 2022-08-22 07:33:57 +00:00
serde_keyvalue serde_keyvalue: more natural signed number parsing 2022-08-27 03:27:48 +00:00
src crosvm: unix: Allow to instantiate Virtio MMIO-based devices 2022-08-26 12:22:31 +00:00
system_api_stub crosvm: migrate to Rust 2021 edition 2022-03-09 01:16:03 +00:00
tests Reformat imports 2022-07-28 00:15:50 +00:00
third_party health-check: Add infra checks 2022-08-18 00:17:04 +00:00
tools dev_container: Fix /scratch permission 2022-08-25 18:34:56 +00:00
tpm2 Reformat imports 2022-07-28 00:15:50 +00:00
tpm2-sys tpm2-sys: build libtpm2 with -Wno-error 2022-07-28 00:26:00 +00:00
tracing health-check: Add check for newline at ends of files 2022-08-18 00:17:04 +00:00
tube_transporter Remove redundant {self} imports 2022-08-01 21:27:54 +00:00
usb_sys Reformat imports 2022-07-28 00:15:50 +00:00
usb_util Remove redundant {self} imports 2022-08-01 21:27:54 +00:00
vfio_sys direct_irq: support forwarding of ACPI fixed events 2022-08-09 09:24:31 +00:00
vhost Reformat imports 2022-07-28 00:15:50 +00:00
virtio_sys devices: virtio: Virtio over MMIO support 2022-08-26 12:22:31 +00:00
vm_control devices: vvu: proxy vring call eventfds with kvm 2022-08-17 01:58:22 +00:00
vm_memory Remove redundant {self} imports 2022-08-01 21:27:54 +00:00
win_audio crosvm: resync with downstream after running clippy 2022-08-25 20:45:12 +00:00
win_util Reformat imports 2022-07-28 00:15:50 +00:00
x86_64 x86_64: Generate ACPI content for Virtio MMIO device 2022-08-26 15:39:02 +00:00
.dockerignore add docker supported builds and tests 2019-05-15 13:36:19 -07:00
.gitignore Add python configs for consistency between IDE and CI 2022-08-16 18:33:23 +00:00
.gitmodules health-check: Add infra checks 2022-08-18 00:17:04 +00:00
.rustfmt.toml rustfmt, win_util: update to 2021 edition 2022-05-31 23:35:02 +00:00
ARCHITECTURE.md arch: allocate reserved PCI addresses first 2022-08-01 18:57:44 +00:00
Cargo.lock serde_keyvalue: use nom crate for parsing 2022-08-24 00:37:59 +00:00
Cargo.toml crosvm: disable ffmpeg decoder from default builds 2022-08-23 01:47:48 +00:00
CONTRIBUTING.md contributing: fix "uploaad" typo 2022-08-01 23:30:44 +00:00
LICENSE add LICENSE and README 2017-04-17 14:06:21 -07:00
mypy.ini Add python configs for consistency between IDE and CI 2022-08-16 18:33:23 +00:00
navbar.md crosvm: update book and doc links to crosvm.dev 2022-07-29 22:54:01 +00:00
OWNERS Add rizhang@ to OWNERS 2022-08-17 01:14:13 +00:00
PRESUBMIT.cfg Switch main crosvm repo 2022-07-14 17:58:26 +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 crosvm: update book and doc links to crosvm.dev 2022-07-29 22:54:01 +00:00
run_tests Deprecate old dev tooling scripts 2021-11-02 22:23:03 +00:00
rust-toolchain rust-toolchain: update to 1.60.0 2022-07-28 17:46:00 +00:00
setup_cros_cargo.sh Deprecate old dev tooling scripts 2021-11-02 22:23:03 +00:00
test_all Deprecate old dev tooling scripts 2021-11-02 22:23:03 +00:00
unblocked_terms.txt unblocked_terms.txt: clean up trivial cases 2021-04-26 20:32:38 +00:00

crosvm - The Chrome OS 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 Chrome OS 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 Chrome OS devices.

Logo