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


Virtio socket support for Rust. Implements VsockListener and VsockStream which are analogous to the std::net::TcpListener and std::net::TcpStream types.


Refer to the crate documentation.



You will need a recent qemu-system-x86_64 build in your path.


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


Run the test suite with:

make check