crosvm/devices
A. Cody Schuffelen e86184d692 Keep track of the host output side on virtio-console reset
The previous implementation would lose track of the host output
io::Write stream on receiving a virtio reset request, due to how the
output instance was being passed around through Option instances.

This change replaces one level of Option state with a reference instead,
so the Console instance retains ownership over the output instance and
the virtio-console Worker instance only holds a mutable reference.

Test: Run with a virtio-console device that receives a virtio reset
Bug: b/208540565
Change-Id: Ib672ac244a7209797e1d64feca913b12f31a66d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3309207
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Cody Schuffelen <schuffelen@google.com>
2021-12-02 01:51:59 +00:00
..
src Keep track of the host output side on virtio-console reset 2021-12-02 01:51:59 +00:00
.build_test_serial
Cargo.toml vmm_vhost: Rename features to "vmm" and "device" 2021-12-01 09:45:48 +00:00