mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
c32a063c84
The vhost-user backend currently supports socket creation solely from UDS paths. To accommodate scenarios requiring the passing of connected sockets via file descriptors, this change introduces the VhostUserStream structure implementing VhostUserConnection. The VhostUserStream constructs directly from a raw file descriptor, dup fd and establishing a UnixStream for communication. This change adds a 'fd' option to the vhost-user-fs backend device. This allows the vhost-user socket to be created either by providing a UDS path (using the 'socket' option) or by using a raw file descriptor (using the new 'fd' option). TEST=tools/dev_container tools/presubmit BUG=b:361212225 Change-Id: I4912f697b5b9d24c7b0b2281a113047831c844df Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5796596 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Commit-Queue: Yuan Yao <yuanyaogoog@chromium.org> |
||
---|---|---|
.. | ||
base_event_token_derive | ||
src | ||
tests | ||
.build_test_serial | ||
Cargo.toml |