pci: Add support for vfio-user PCI devices

Taking advantage of the refactored VFIO code implement a new
VfioUserPciDevice that wraps the client for vfio-user and exposes the
BusDevice and PciDevice into the VMM.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2021-06-09 13:43:04 +00:00
parent 7fbec7113e
commit 9254b74c6d
5 changed files with 451 additions and 0 deletions
+2
View File
@@ -222,6 +222,8 @@ pub struct MmioRegion {
pub enum VfioError {
#[error("Kernel VFIO error: {0}")]
KernelVfio(#[source] vfio_ioctls::VfioError),
#[error("VFIO user error: {0}")]
VfioUser(#[source] vfio_user::Error),
}
pub(crate) trait Vfio {