crosvm/common/base/src
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
..
async_types.rs Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00
event.rs scoped_event: Created macro to reduce duplicate code 2022-03-15 20:36:09 +00:00
ioctl.rs Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00
lib.rs base: remove wildcard and export specific sys_util symbols 2022-03-09 20:50:40 +00:00
mmap.rs base: allow creating Arena from base::MemoryMapping 2022-02-28 19:16:39 +00:00
shm.rs audio_streams: Introduce SharedMemory trait for base::SharedMemory 2021-11-18 08:45:14 +00:00
timer.rs Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00
tube.rs devices: vhost: user: gpu: stop using Tube::try_clone() 2022-03-16 05:14:27 +00:00
wait_context.rs Refactoring: Move various general purpose crates to common/ 2021-10-29 22:31:43 +00:00