No description
Find a file
Alexandre Courbot f70a014c32 virtio: video: decoder: fix computed picture plane size
The picture buffer size was computed from the size of the visible
rectangle, which is potentially incorrect: if the origin of the visible
rectangle is not (0, 0) then the buffer is going to be larger.

Fix this by using the provided coded width and height, which correspond
to the actual size of the buffer and not just its visible area.

BUG=b:161774071
TEST=Android Youtube decodes properly on zork-arc-r.

Change-Id: I80e15248f41d6202190456d2ab61f8f50d3b6ebb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3412457
Reviewed-by: Chih-Yu Huang <akahuang@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: David Staessens <dstaessens@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
2022-01-26 03:54:45 +00:00
.cargo Enable some tests for armhf builds 2021-12-14 18:11:32 +00:00
.devcontainer Make vscode devcontainer usable 2022-01-25 21:30:49 +00:00
.github tools: Add cargo-doc script 2021-12-09 14:34:31 +00:00
aarch64 aarch64: actually load kernel at 8MB 2022-01-11 22:41:43 +00:00
acpi_tables x86_64: Add _OSC for pcie hotplug 2021-12-09 00:19:42 +00:00
arch hypervisor: add API to query VM physaddr size 2022-01-11 22:41:38 +00:00
bin Deprecate old dev tooling scripts 2021-11-02 22:23:03 +00:00
bit_field crosvm: fix needless_borrow clippy warning 2021-08-25 23:02:23 +00:00
ci/kokoro kokoro: update submodules after rebasing 2022-01-22 00:05:23 +00:00
common p9: re-add OWNERS file for fuzzer ownership 2022-01-10 20:43:27 +00:00
crosvm-fuzz crosvm-fuzz: add hypervisor dependency for block_fuzzer 2022-01-05 21:46:34 +00:00
crosvm_control crosvm: Rename libcrosvm_control to crosvm_control 2021-12-14 18:38:42 +00:00
crosvm_plugin sys_util: Replace unsafe use of iovecs 2021-11-26 14:28:28 +00:00
devices virtio: video: decoder: fix computed picture plane size 2022-01-26 03:54:45 +00:00
disk Handle qcow image backed by a composite disk 2021-11-11 11:08:48 +00:00
docs/book Docs: remove --global from git config 2022-01-25 23:03:00 +00:00
fuse fuse: Set max_pages in InitOut 2021-11-25 03:56:08 +00:00
gpu_display x display: ST event emulation for MT events 2022-01-13 18:36:41 +00:00
hypervisor aarch64: do not accept 0 as a valid address size 2022-01-18 21:30:32 +00:00
integration_tests Enable clippy on more workspace crates 2021-11-15 23:55:42 +00:00
kernel_cmdline kernel_cmdline: convert to ThisError and sort 2021-09-02 21:00:23 +00:00
kernel_loader Enable clippy on more workspace crates 2021-11-15 23:55:42 +00:00
kvm aarch64: Provide the maximum supported IPA size as the machine type 2021-11-01 14:24:27 +00:00
kvm_sys Update value of KVM_VM_TYPE_ARM_PROTECTED to match temporary pKVM ABI. 2022-01-07 17:18:21 +00:00
libcras_stub Integrate audio_streams into crosvm, add stub libcras implementation 2021-07-29 05:59:42 +00:00
libvda libvda: ignore pkg_config errors if chromeos feature is not set 2021-12-22 05:47:05 +00:00
linux_input_sys x display: ST event emulation for MT events 2022-01-13 18:36:41 +00:00
logo README: Use PNG logo image 2021-10-29 01:56:23 +00:00
net_sys kvm_sys|virtio_sys|net_sys: disable tests failing on 32bits 2021-12-15 00:55:48 +00:00
net_util crosvm: add option to use persistent TAP interface as network device 2021-12-10 07:31:03 +00:00
power_monitor Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00
protos Remove trunks proto from crosvm build 2021-07-31 03:01:21 +00:00
qcow_utils qcow_utils: Move from getopts to argh 2022-01-06 21:28:47 +00:00
resources resources: use PCI functions if devices are exhausted 2022-01-20 19:40:09 +00:00
rutabaga_gfx rutabaga_gfx: use stream_renderer_map_info 2022-01-18 22:40:30 +00:00
seccomp coiommu: add LRU unpin policy 2022-01-22 06:47:41 +00:00
src plugin: switch to using anyhow for error reporting 2022-01-26 00:10:32 +00:00
system_api_stub system_api_stub: use 2018 edition of Rust 2021-09-09 06:42:46 +00:00
tests tests/plugins: replace rand_ish use with a counter 2021-07-21 23:28:27 +00:00
third_party gpu: add support for shader cache for the render server 2022-01-19 18:49:42 +00:00
tools Add functional crosvm examples for running on linux 2022-01-18 23:24:00 +00:00
tpm2 crosvm: add license blurb to all files 2019-04-24 15:51:38 -07:00
tpm2-sys Enable some tests for armhf builds 2021-12-14 18:11:32 +00:00
usb_sys Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00
usb_util usb_util: do not silently drop non-EAGAIN errors 2021-12-15 19:34:08 +00:00
vfio_sys Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00
vhost devices: vhost: Allow vhost-vsock fd from command-line 2021-11-18 15:19:29 +00:00
virtio_sys kvm_sys|virtio_sys|net_sys: disable tests failing on 32bits 2021-12-15 00:55:48 +00:00
vm_control main: Add hotplug vfio device commmand through control socket 2022-01-21 20:48:25 +00:00
vm_memory Revert "vm-memory: mlock2(MLOCK_ONFAULT) guest memory for protected VMs" 2021-12-02 11:28:53 +00:00
x86_64 x86: pass host's processor brand string to guests 2022-01-25 01:56:29 +00:00
.dockerignore add docker supported builds and tests 2019-05-15 13:36:19 -07:00
.gitignore Add test runner ./tools/run_tests 2021-10-15 22:12:03 +00:00
.gitmodules Switch to submodules based workflow 2021-08-05 18:32:32 +00:00
.rustfmt.toml rustfmt.toml: Use 2018 edition 2021-02-10 11:54:06 +00:00
ARCHITECTURE.md crosvm: Add a note that MemoryMapping does RAII. 2021-11-30 09:24:16 +00:00
Cargo.toml Cargo: stop enabling the libvda feature by default 2022-01-13 11:50:14 +00:00
CONTRIBUTING.md crosvm: Merge README.chromeos to CONTRIBUTING. 2022-01-26 01:33:23 +00:00
LICENSE add LICENSE and README 2017-04-17 14:06:21 -07:00
navbar.md navbar: Update navbar contents 2021-10-29 01:56:24 +00:00
OWNERS Remove chirantan from OWNERS 2022-01-06 21:32:18 +00:00
README.chromeos.md crosvm: Merge README.chromeos to CONTRIBUTING. 2022-01-26 01:33:23 +00:00
README.md crosvm: Sprinkle notes on API search. 2021-11-08 07:21:20 +00:00
run_tests Deprecate old dev tooling scripts 2021-11-02 22:23:03 +00:00
rust-toolchain Uprev rust toolchain to 1.56.1 2021-12-10 02:34:50 +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