commit | fcaa523d015c64924f793d38c1584f7f1a3efaf8 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Tue Sep 29 15:07:49 2020 +0100 |
committer | Andrew Walbran <qwandor@google.com> | Tue Oct 20 12:49:38 2020 +0100 |
tree | 3baaa60552cb80824ef47c0db18fa25cc64d2152 | |
parent | 641348654deac902ddb0212cbb414c516d37ff49 [diff] |
Use socklen_t rather than u32, as they are not always the same. e.g. on 32-bit Android targets. Bug: 171249434 Test: mm Change-Id: I1f0c8d37021b778a4db7738f2eb37c25dcac3983
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