This crate provides the client and server support for implementing vfio-user devices. More details of vfio-user can be found in the protocol specification.
There are two structs:
Client
provides a vfio-user client (the part that sits in the VMM)Server
provides a vfio-user server (the part that implements the device)
The examples directory contains a sample PCI device implementing a GPIO controller. It can be compiled with cargo build --examples
This crate is licensed under the Apache 2.0 licence. The full text can be found in the LICENSE-APACHE file.