commit | 33e509a53b35d9d6d232b57e7839a0ecea09607b | [log] [tgz] |
---|---|---|
author | Alexandre Courbot <acourbot@chromium.org> | Wed Jan 12 18:28:32 2022 +0900 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 18 07:06:53 2022 +0000 |
tree | 064aad35e3ec7a14e4fdb9b4be4e68496fa4adac | |
parent | cfe5ab52ea5e014548b8169a3e02b8c88d3cbb18 [diff] |
virtio: video: encoder: support GET_PARAMS_EXT as pending command GET_PARAMS and GET_PARAMS_EXT's reply can be delayed if a session is ongoing but no input buffer has been received yet. When this happens we store the command into a set of pending commands, but when doing so we only allowed for a reply to GET_PARAMS to be returned, which causes the wrong reply to be sent if the guest used GET_PARAMS_EXT. Fix this by storing whether the EXT variant has been used as a boolean in the command and replying accordingly. BUG=b:193202566 TEST=arc.VideoEncodeAccel.h264_192p_i420_vm passes without https://crrev.com/c/3349429 TEST=arc.VideoEncodeAccel.h264_192p_i420_vm passes with https://crrev.com/c/3349429 Change-Id: I6d135c611a32d0f107ac9f437b046f4309b54dba Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3382501 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
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 Chrome OS 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 Chrome OS devices.