Skip to content

rust-vsock/vsock-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b9890f1 · Apr 19, 2024

History

88 Commits
Nov 9, 2019
Feb 27, 2024
Jun 8, 2022
Apr 19, 2024
Nov 12, 2019
Jun 14, 2022
Feb 4, 2021
Apr 9, 2024
Nov 8, 2019
Jan 29, 2021
Nov 27, 2023

Repository files navigation

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