commit | 31f04e92709980a4ffc56b1631f8b4be437cc2fe | [log] [tgz] |
---|---|---|
author | David Stevens <stevensd@chromium.org> | Wed Jun 15 06:56:18 2022 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jul 01 08:13:52 2022 |
tree | 35c0f34073a701b9f2a25a3ed9d53b9bb8aada21 | |
parent | 2e2e4910d58bc865ba411ba4c01dd5ddf8102697 [diff] |
vmm_vhost: fix receiving reply payloads The existing code confuses the length of the request with the length of the reply in recv_reply_with_payload. This makes it impossible to use for any requests where the reply differs in size. Fix this by determining payload size after reading the reply header. BUG=b:201745804 TEST=compiles Change-Id: Iec21918e45b81d299f3178e7893e146cbd4c7db7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3716343 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: David Stevens <stevensd@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.