tree: 337daff32d339ca09145dbe795c224124f317505 [path history] [tgz]
  1. src/
  2. tests/
  3. .cargo-checksum.json
  4. Android.bp
  5. Cargo.toml
  6. cargo_embargo.json
  7. LICENSE
  8. Makefile
  9. METADATA
  10. MODULE_LICENSE_APACHE2
  11. README.md
  12. 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