pci: Pass DeviceRelocation to PciBus

In order to trigger the PCI BAR reprogramming from PciConfigIo and
PciConfigMmmio, we need the PciBus to have a hold onto the trait
implementation of DeviceRelocation.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-10-28 10:30:51 -07:00
committed by Samuel Ortiz
parent e93467a96c
commit 04a449d3f3
2 changed files with 8 additions and 4 deletions

View File

@@ -537,7 +537,7 @@ impl DeviceManager {
#[cfg(feature = "pci_support")]
{
let pci_root = PciRoot::new(None);
let mut pci_bus = PciBus::new(pci_root);
let mut pci_bus = PciBus::new(pci_root, address_manager.clone());
let (mut iommu_device, iommu_mapping) = if vm_info.vm_cfg.iommu {
let (device, mapping) =