tree: e9562ef72d6c8cab910794922a852bdfd5b4f0a1 [path history] [tgz]
  1. src/
  2. tests/
  3. .android-checksum.json
  4. .cargo-checksum.json
  5. Android.bp
  6. Cargo.toml
  7. cargo_embargo.json
  8. LICENSE
  9. Makefile
  10. METADATA
  11. MODULE_LICENSE_APACHE2
  12. README.md
  13. TEST_MAPPING
crates/vsock/README.md

vsock-rs

Virtio socket support for Rust. Implements VsockListener and VsockStream which are analogous to the std::net::TcpListener and std::net::TcpStream types.

Usage

Refer to the crate documentation.

Testing

Prerequisites

You will need a recent qemu-system-x86_64 build in your path.

Host

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

Tests

Run the test suite with:

make check