Bug: 171249434

Clone this repo:
  1. bc5a1c4 Update vsock to 0.2.6 by David LeGare · 3 months ago master
  2. bd8cddb Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: a5341a6140 am: 2b850fd536 am: 4d3f891433 by Joel Galenson · 5 months ago
  3. 4d3f891 Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: a5341a6140 am: 2b850fd536 by Joel Galenson · 5 months ago
  4. 2b850fd Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." am: a5341a6140 by Joel Galenson · 5 months ago
  5. a5341a6 Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." by Joel Galenson · 5 months ago android-s-qpr3-beta-1 android-s-v2-beta-3 android-t-preview-1 android-s-qpr3-beta-1 android-s-v2-beta-3 android-t-preview-1 android-t-preview-2

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