crosvm/devices
Alexandre Courbot c771a1dc1a virtio: vhost: user: introduce VhostUserListener platform type
Vhost-user transport can be implemented differently depending on the
system ; on Unix it can work through a socket or a VFIO device, whereas
Windows will use a Tube. This CL introduces a platform-specific
VhostUserListener type that we will use to abstract this part and
increase the part of shared code between Unix and Windows. It is also
useful to abstract the difference between the different kinds of
listeners on a same system, as it is able to create the right type from
an input string.

This type will also be important to implement jailed vhost-user devices.

The Windows implementation is still a TODO ; this is ok for now as only
the Unix code makes use of it.

BUG=b:217480043
TEST=vhost-user console device works on Linux.

Change-Id: If2f308ce7f71420012ebd2d49361454706f8a6ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3706489
Reviewed-by: David Stevens <stevensd@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
2022-07-05 08:16:57 +00:00
..
src virtio: vhost: user: introduce VhostUserListener platform type 2022-07-05 08:16:57 +00:00
Cargo.toml virtio-vhost: Enable block tests 2022-07-01 23:44:09 +00:00