crosvm/devices/src
Daniel Verkamp 96afbc3dd6 vmm_vhost: replace SystemStream with Connection in pub API
The vmm_vhost::Connection type is now used consistently to represent a
vhost-user connection in the places that previously used a SystemStream
(which is either UnixStream or Tube depending on the platform).

This cleans up the vmm_vhost public API and also keeps more of the
internal vhost-user implementation encapsulated inside the vmm_vhost
library.

The conversion to Connection for unix has also been improved to
propagate the error via TryFrom instead of From, resolving a TODO
comment.

Change-Id: Ib02d300a04304242f7be7e1661c0213c25c7a4f1
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5874103
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-09-19 21:19:33 +00:00
..
irqchip
pci
platform
register_space
serial
sys
tsc
usb
utils
virtio vmm_vhost: replace SystemStream with Connection in pub API 2024-09-19 21:19:33 +00:00
ac_adapter.rs
acpi.rs
bat.rs
bus.rs
bus_stats.rs
cmos.rs
debugcon.rs
fw_cfg.rs
i8042.rs
irq_event.rs
lib.rs
pflash.rs
pit.rs
pl030.rs
pmc_virt.rs
proxy.rs
serial.rs
serial_device.rs
suspendable.rs
sys.rs
tsc.rs
vfio.rs
virtcpufreq.rs
vmwdt.rs
vtpm_proxy.rs