diff --git a/pci/src/vfio.rs b/pci/src/vfio.rs index ee4e43e31..7f97e73da 100644 --- a/pci/src/vfio.rs +++ b/pci/src/vfio.rs @@ -19,9 +19,7 @@ use log::{error, info}; use serde::{Deserialize, Serialize}; use thiserror::Error; use vfio_bindings::bindings::vfio::*; -use vfio_ioctls::{ - VfioContainer, VfioDevice, VfioIrq, VfioRegionInfoCap, VfioRegionSparseMmapArea, -}; +use vfio_ioctls::{VfioDevice, VfioIrq, VfioOps, VfioRegionInfoCap, VfioRegionSparseMmapArea}; use vm_allocator::page_size::{ align_page_size_down, align_page_size_up, is_4k_aligned, is_4k_multiple, is_page_size_aligned, }; @@ -1468,7 +1466,7 @@ pub struct VfioPciDevice { id: String, vm: Arc, device: Arc, - container: Arc, + container: Arc, common: VfioCommon, iommu_attached: bool, memory_slot_allocator: MemorySlotAllocator, @@ -1483,7 +1481,7 @@ impl VfioPciDevice { id: String, vm: Arc, device: VfioDevice, - container: Arc, + container: Arc, msi_interrupt_manager: Arc>, legacy_interrupt_group: Option>, iommu_attached: bool, @@ -2000,7 +1998,7 @@ impl Migratable for VfioPciDevice {} /// be used when the caller tries to provide a way to update the mappings /// associated with a specific VFIO container. pub struct VfioDmaMapping { - container: Arc, + container: Arc, memory: Arc, mmio_regions: Arc>>, } @@ -2012,7 +2010,7 @@ impl VfioDmaMapping { /// * `memory`: guest memory to mmap. /// * `mmio_regions`: mmio_regions to mmap. pub fn new( - container: Arc, + container: Arc, memory: Arc, mmio_regions: Arc>>, ) -> Self { diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index 50b82772d..8dc2399e3 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -1032,7 +1032,7 @@ pub struct DeviceManager { // VFIO container // Only one container can be created, therefore it is stored as part of the // DeviceManager to be reused. - vfio_container: Option>, + vfio_container: Option>, // Paravirtualized IOMMU iommu_device: Option>>, @@ -3798,7 +3798,7 @@ impl DeviceManager { self.add_vfio_device(device_cfg) } - fn create_vfio_container(&self) -> DeviceManagerResult> { + fn create_vfio_container(&self) -> DeviceManagerResult> { let passthrough_device = self .passthrough_device .as_ref()