commit | daf2ff6eb648ef814d2ee21587599209488bed8e | [log] [tgz] |
---|---|---|
author | Andrew Walbran <[email protected]> | Fri Oct 23 13:21:12 2020 +0000 |
committer | Automerger Merge Worker <[email protected]> | Fri Oct 23 13:21:12 2020 +0000 |
tree | 3baaa60552cb80824ef47c0db18fa25cc64d2152 | |
parent | 9e6fe586d8336735c8c686390331c09a23d240e7 [diff] | |
parent | 629de50b8ec2a59e86b06e21073cdf7342394fb6 [diff] |
Use socklen_t rather than u32, as they are not always the same. am: fcaa523d01 am: 629de50b8e Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/vsock/+/1466267 Change-Id: I01eb4694b460a7747642ce1f4746584374672e94
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