Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
/ tokio-vsock Public archive
forked from rust-vsock/tokio-vsock

Asynchronous Virtio socket support for Rust

License

Notifications You must be signed in to change notification settings

evervault/tokio-vsock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tokio-vsock

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

tokio-vsock is for the most part pre-alpha quality, so there are probably sharp edges. Please test it thoroughly before using in production. Happy to receive pull requests and issue reports.

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

About

Asynchronous Virtio socket support for Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 84.3%
  • Makefile 10.1%
  • Shell 3.7%
  • Dockerfile 1.9%