Bug: 171249434

Clone this repo:
  1. 2924780 Mark ab/7061308 as merged in stage. by Xin Li · 3 months ago main-cg-testing-release master
  2. 3f64c44 [LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/vsock am: 84e4c5cc24 by Bob Badour · 3 months ago
  3. 84e4c5c [LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/vsock by Bob Badour · 3 months ago android-s-preview-1
  4. 22fdfcf Upgrade rust/crates/vsock to 0.2.3 am: efd766e4f6 by Haibo Huang · 3 months ago
  5. efd766e Upgrade rust/crates/vsock to 0.2.3 by Haibo Huang · 3 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