Bug: 171249434

Clone this repo:
  1. fceb0c1 Mark apex-available by Elisei Zamakhov · 2 weeks ago main master
  2. 061a818 Update Android.bp by running cargo_embargo am: c4e3d93d63 by James Farrell · 9 weeks ago
  3. c4e3d93 Update Android.bp by running cargo_embargo by James Farrell · 9 weeks ago
  4. 84c5da8 Upgrade vsock to 0.5.0 am: c2d35ebe4b by Frederick Mayle · 4 months ago
  5. c2d35eb Upgrade vsock to 0.5.0 by Frederick Mayle · 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