ianoc / vsock-rs

Virtio socket support for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Virtio socket support for Rust

License:Apache License 2.0


Languages

Language:Rust 86.8%Language:Makefile 9.6%Language:Shell 3.6%