vfio: Use the vfio-binding FAM wrappers

It's less unsafe and makes the code more readable.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2020-01-24 18:02:15 +01:00
committed by Sebastien Boeuf
parent 275cb5c92f
commit 652b60320d
3 changed files with 25 additions and 38 deletions

View File

@@ -12,7 +12,6 @@ kvm-ioctls = "0.5.0"
libc = "0.2.60"
log = "0.4.8"
pci = { path = "../pci" }
vfio-bindings = "0.1.0"
vm-allocator = { path = "../vm-allocator" }
vm-device = { path = "../vm-device" }
vmm-sys-util = ">=0.3.1"
@@ -20,3 +19,7 @@ vmm-sys-util = ">=0.3.1"
[dependencies.vm-memory]
git = "https://github.com/rust-vmm/vm-memory"
features = ["backend-mmap"]
[dependencies.vfio-bindings]
git = "https://github.com/rust-vmm/vfio-bindings"
features = ["fam-wrappers"]