rust-vsock/tokio-vsock

Asynchronous Virtio socket support for Rust

Rust

61

139 commits

updated Jun 23, 2026

See the code

README

tokio-vsock

Asynchronous Virtio socket support for Rust. The implementation is based off of Tokio and Mio's TCPListener and TCPStream interfaces.

Use Cases

The most common use case for tokio-vsock would be writing agents for microvm applications. Examples would include container runtimes.

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

Contributors

Tim-Zhang

38 commits

jalil-salame

25 commits

qwandor

22 commits

dependabot[bot]

14 commits

rust-vsock/tokio-vsock

Asynchronous Virtio socket support for Rust

Rust

61

139 commits

updated Jun 23, 2026

See the code

README

tokio-vsock

Asynchronous Virtio socket support for Rust. The implementation is based off of Tokio and Mio's TCPListener and TCPStream interfaces.

Use Cases

The most common use case for tokio-vsock would be writing agents for microvm applications. Examples would include container runtimes.

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

Contributors

Tim-Zhang

38 commits

jalil-salame

25 commits

qwandor

22 commits

dependabot[bot]

14 commits

Languages

Rust

91.2%

Makefile

6.5%

Shell

2.2%