summary refs log tree commit diff
path: root/src/linux.rs
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2019-10-10 14:28:35 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-14 23:59:49 +0000
commit8eb944b480c0b1e07ba24e02bb7e1955f3daf584 (patch)
tree7d674a0246dfd2f95c48e06445153666037b2d61 /src/linux.rs
parent1fb6c0d01969ef9d2bd8785e4ad41d56d611fda1 (diff)
downloadcrosvm-8eb944b480c0b1e07ba24e02bb7e1955f3daf584.tar
crosvm-8eb944b480c0b1e07ba24e02bb7e1955f3daf584.tar.gz
crosvm-8eb944b480c0b1e07ba24e02bb7e1955f3daf584.tar.bz2
crosvm-8eb944b480c0b1e07ba24e02bb7e1955f3daf584.tar.lz
crosvm-8eb944b480c0b1e07ba24e02bb7e1955f3daf584.tar.xz
crosvm-8eb944b480c0b1e07ba24e02bb7e1955f3daf584.tar.zst
crosvm-8eb944b480c0b1e07ba24e02bb7e1955f3daf584.zip
devices: proxy: do not acknowledge write commands
Write accessess cannot fail (in the CommandResult sense) and the result
did not carry any data, so remove the response from the Write command.

This should improve the speed of write requests for sandboxed devices.

For example, with the sandboxed serial device, boot time with a release
build of crosvm on my workstation goes from 1.7 seconds to 1.2 seconds,
measured by timing a boot with a missing init so that the kernel panics
and shuts down immediately.

BUG=None
TEST=time crosvm run -p init=bogus vm_kernel

Change-Id: I125bb831235ca741ae1cc6c86a02a5d863d1a211
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1853970
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/linux.rs')
0 files changed, 0 insertions, 0 deletions