Make vsock available to product and vendor am: b0ed37f95d am: ae8287e995 am: aa3896fc0a Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/vsock/+/2476531 Change-Id: Ifd268f4634c033f9bedbbbf6559cc33243fe21e6 Signed-off-by: Automerger Merge Worker <[email protected]>
Virtio socket support for Rust. Implements VsockListener and VsockStream which are analogous to the std::net::TcpListener and std::net::TcpStream types.
Refer to the crate documentation.
You will need a recent qemu-system-x86_64 build in your path.
Setup the required virtio kernel modules:
make kmod
Start the test vm, you can shutdown the vm with the keyboard shortcut Ctrl+A and then x:
make vm
Run the test suite with:
make check