commit | f51a36e9b188d564ae148f573140958605d9f862 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Fri Oct 23 14:19:41 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Oct 23 14:19:41 2020 +0000 |
tree | 3baaa60552cb80824ef47c0db18fa25cc64d2152 | |
parent | ac0095a5b5abbf51cc003454651cc7d32996cd61 [diff] | |
parent | eb0f3f4e3fb31e1619f7edfc7c55d18bee1341ef [diff] |
Use socklen_t rather than u32, as they are not always the same. am: fcaa523d01 am: 629de50b8e am: daf2ff6eb6 am: eb0f3f4e3f Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/vsock/+/1466267 Change-Id: If4667ae0748e4b558c3fd2b69f2046a707d8cd77
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