vfio: Create VFIO implementation of ExternalDmaMapping

With this implementation of the trait ExternalDmaMapping, we now have
the tool to provide to the virtual IOMMU to trigger the map/unmap on
behalf of the guest.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-10-07 10:48:44 -07:00
committed by Samuel Ortiz
parent 3598e603d5
commit 837bcbc6ba
6 changed files with 79 additions and 9 deletions

View File

@@ -29,8 +29,8 @@ serde = {version = ">=1.0.27", features = ["rc"] }
serde_derive = ">=1.0.27"
serde_json = ">=1.0.9"
vfio = { path = "../vfio", optional = true }
vm-virtio = { path = "../vm-virtio" }
vm-allocator = { path = "../vm-allocator" }
vm-virtio = { path = "../vm-virtio" }
vmm-sys-util = "0.1.1"
signal-hook = "0.1.10"
threadpool = "1.0"