Bug: 171249434

Clone this repo:
  1. 061a818 Update Android.bp by running cargo_embargo am: c4e3d93d63 by James Farrell · 4 weeks ago main master
  2. c4e3d93 Update Android.bp by running cargo_embargo by James Farrell · 4 weeks ago
  3. 84c5da8 Upgrade vsock to 0.5.0 am: c2d35ebe4b by Frederick Mayle · 9 weeks ago
  4. c2d35eb Upgrade vsock to 0.5.0 by Frederick Mayle · 10 weeks ago
  5. 0cdbb73 Upgrade vsock to 0.4.0 am: bb91fc7565 am: 128b22d835 am: 93678c42f8 by Ludovic Barman · 6 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