Bug: 171249434

Clone this repo:
  1. 0cdbb73 Upgrade vsock to 0.4.0 am: bb91fc7565 am: 128b22d835 am: 93678c42f8 by Ludovic Barman · 3 months ago main master
  2. 93678c4 Upgrade vsock to 0.4.0 am: bb91fc7565 am: 128b22d835 by Ludovic Barman · 3 months ago
  3. 128b22d Upgrade vsock to 0.4.0 am: bb91fc7565 by Ludovic Barman · 3 months ago
  4. bb91fc7 Upgrade vsock to 0.4.0 by Ludovic Barman · 3 months ago
  5. df96a99 Migrate to cargo_embargo. am: 18121a0272 am: c5cc33de19 am: be2d1ace8a by Andrew Walbran · 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