You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jianglk.darker 7ee447c011
v811_spc009_project
7 months ago
..
.cargo v811_spc009_project 7 months ago
src v811_spc009_project 7 months ago
tests v811_spc009_project 7 months ago
.cargo_vcs_info.json v811_spc009_project 7 months ago
Android.bp v811_spc009_project 7 months ago
Cargo.toml v811_spc009_project 7 months ago
Cargo.toml.orig v811_spc009_project 7 months ago
LICENSE v811_spc009_project 7 months ago
METADATA v811_spc009_project 7 months ago
MODULE_LICENSE_APACHE2 v811_spc009_project 7 months ago
Makefile v811_spc009_project 7 months ago
OWNERS v811_spc009_project 7 months ago
README.android v811_spc009_project 7 months ago
README.md v811_spc009_project 7 months ago

README.md

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