vsock

Crates.iovsock
lib.rsvsock
version0.5.1
sourcesrc
created_at2019-11-09 19:57:02.183051
updated_at2024-08-27 12:53:21.433359
descriptionVirtio socket support for Rust
homepagehttps://github.com/rust-vsock/vsock-rs
repositoryhttps://github.com/rust-vsock/vsock-rs
max_upload_size
id179759
size34,343
Andrew Walbran (qwandor)

documentation

README

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
Commit count: 85

cargo fmt