tree: 0d89b2eee77fb120310f8a95869eed895044091f [path history] [tgz]
  1. .cargo/
  2. .github/
  3. src/
  4. tests/
  5. .android-checksum.json
  6. .cargo-checksum.json
  7. .cargo_vcs_info.json
  8. Android.bp
  9. Cargo.lock
  10. Cargo.toml
  11. Cargo.toml.orig
  12. cargo_embargo.json
  13. LICENSE
  14. Makefile
  15. METADATA
  16. MODULE_LICENSE_APACHE2
  17. README.md
  18. 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