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