3 releases

0.1.2 Nov 12, 2025
0.1.1 Sep 2, 2025
0.1.0 Jun 10, 2025

#9 in #pci-devices

Download history 2454/week @ 2025-10-20 1882/week @ 2025-10-27 2330/week @ 2025-11-03 2643/week @ 2025-11-10 3500/week @ 2025-11-17 3674/week @ 2025-11-24 2714/week @ 2025-12-01 2570/week @ 2025-12-08 1497/week @ 2025-12-15 745/week @ 2025-12-22 1401/week @ 2025-12-29 1660/week @ 2026-01-05 2118/week @ 2026-01-12 2462/week @ 2026-01-19 2638/week @ 2026-01-26 2770/week @ 2026-02-02

10,146 downloads per month

Apache-2.0

46KB
1K SLoC

vfio_user

Design

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.

Usage

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)

Examples

The examples directory contains a sample PCI device implementing a GPIO controller. It can be compiled with cargo build --examples

Licence

This crate is licensed under the Apache 2.0 licence. The full text can be found in the LICENSE-APACHE file.

Dependencies

~1.7–2.9MB
~53K SLoC