Bug: 171249434

Clone this repo:
  1. f32618e Update TEST_MAPPING am: 86e6d34be1 by Joel Galenson · 7 weeks ago master
  2. 86e6d34 Update TEST_MAPPING by Joel Galenson · 7 weeks ago android-s-beta-5
  3. 31ae081 Make libvsock available to the virt APEX am: d8fb876292 am: 94cf58be9b by Jiyong Park · 3 months ago
  4. 94cf58b Make libvsock available to the virt APEX am: d8fb876292 by Jiyong Park · 3 months ago
  5. d8fb876 Make libvsock available to the virt APEX by Jiyong Park · 3 months ago android-s-beta-4 android-s-beta-3

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