Bug: 171249434

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