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.
|
|
3 years ago | |
|---|---|---|
| .. | ||
| .cargo | 3 years ago | |
| .github/workflows | 3 years ago | |
| src | 3 years ago | |
| tests | 3 years ago | |
| .cargo_vcs_info.json | 3 years ago | |
| .gitignore | 3 years ago | |
| Android.bp | 3 years ago | |
| Cargo.toml | 3 years ago | |
| Cargo.toml.orig | 3 years ago | |
| LICENSE | 3 years ago | |
| METADATA | 3 years ago | |
| MODULE_LICENSE_APACHE2 | 3 years ago | |
| Makefile | 3 years ago | |
| OWNERS | 3 years ago | |
| README.android | 3 years ago | |
| README.md | 3 years 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