Bug: 171249434

Clone this repo:
  1. ae8287e Make vsock available to product and vendor am: b0ed37f95d by Matthew Maurer · 3 months ago main master android-u-beta-1-gpl
  2. b0ed37f Make vsock available to product and vendor by Matthew Maurer · 3 months ago
  3. 999c47c Update TEST_MAPPING am: b2278b6487 by Jeff Vander Stoep · 4 months ago
  4. b2278b6 Update TEST_MAPPING by Jeff Vander Stoep · 4 months ago
  5. 1f83cec Update TEST_MAPPING am: 744ca8f7c3 by David Brazdil · 4 months ago

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