crosvm/common
Alexandre Courbot e55b79102c devices: vhost: user: gpu: stop using Tube::try_clone()
Stop using Tube::try_clone() as we want to remove this method.

This requires a change in how the GPU device tube is set. Cloning the
control tube on the VMM side allowed us to pass only one tube to the GPU
device, which received the first message asking for BAR information and
then immediately recycled its tube to send VmMemoryRequests.

Without cloning, we to create two full Tubes and pass the VmMemory tube
as part of the first message to the device. This is a bit more involved
but also safer.

BUG=b:222379833
BUG=b:221484449
TEST=`cargo run device gpu` replies to the initial message and receives
the tube from the VMM process.

Change-Id: I5c85c7c54ab7be0eba322d1884da7076398c4095
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3499911
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
2022-03-16 05:14:27 +00:00
..
assertions crosvm: migrate to Rust 2021 edition 2022-03-09 01:16:03 +00:00
audio_streams audio_streams: Add async interface to remove dependency on cros_async 2022-03-15 17:29:21 +00:00
balloon_control crosvm: migrate to Rust 2021 edition 2022-03-09 01:16:03 +00:00
base devices: vhost: user: gpu: stop using Tube::try_clone() 2022-03-16 05:14:27 +00:00
cros-fuzz crosvm: migrate to Rust 2021 edition 2022-03-09 01:16:03 +00:00
cros_async audio_streams: Add async interface to remove dependency on cros_async 2022-03-15 17:29:21 +00:00
cros_asyncv2 crosvm: migrate to Rust 2021 edition 2022-03-09 01:16:03 +00:00
data_model Upstream data_model 2022-03-10 18:48:52 +00:00
io_uring crosvm: migrate to Rust 2021 edition 2022-03-09 01:16:03 +00:00
p9 crosvm: migrate to Rust 2021 edition 2022-03-09 01:16:03 +00:00
sync crosvm: migrate to Rust 2021 edition 2022-03-09 01:16:03 +00:00
sys_util Fix clippy error 2022-03-16 00:06:41 +00:00
sys_util_core Fix clippy error 2022-03-16 00:06:41 +00:00
win_sys_util scoped_event: Created macro to reduce duplicate code 2022-03-15 20:36:09 +00:00
win_util Upstream win_util 2022-03-14 20:39:10 +00:00
README.md docs: Use mdformat to format markdown files 2022-01-27 21:29:11 +00:00

Crosvm General Purpose Libraries

The crates in this folder are general purpose libraries used by other projects in ChromeOS as well.

To make them accessible independendly of crosvm, each of these crates is excluded from the crosvm workspace.

List of libraries

  • cros-fuzz: Support crate for fuzzing rust code in ChromeOS
  • p9: Server implementation of the 9p file system protocol