Crates.io | vsock |
lib.rs | vsock |
version | 0.5.1 |
source | src |
created_at | 2019-11-09 19:57:02.183051 |
updated_at | 2024-08-27 12:53:21.433359 |
description | Virtio socket support for Rust |
homepage | https://github.com/rust-vsock/vsock-rs |
repository | https://github.com/rust-vsock/vsock-rs |
max_upload_size | |
id | 179759 |
size | 34,343 |
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