mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
c771a1dc1a
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> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |