vfio_user: Add a simple sample device

This implements a similar GPIO device to that found in the libvfio-user
source code.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2023-02-10 18:17:38 +00:00
committed by Bo Chen
parent b7c2a0f23f
commit b072eb454e
3 changed files with 196 additions and 1 deletions

2
Cargo.lock generated
View File

@@ -1385,8 +1385,10 @@ name = "vfio_user"
version = "0.1.0"
dependencies = [
"bitflags",
"env_logger",
"libc",
"log",
"pci",
"serde",
"serde_derive",
"serde_json",