mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-11-05 03:21:13 +00:00
vmm: Add MMIO & PIO config devices for all PCI segments
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
4f5c179b9b
commit
c886d71d29
@ -1188,14 +1188,16 @@ impl DeviceManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for segment in &self.pci_segments {
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
self.bus_devices.push(
|
if let Some(pci_config_io) = segment.pci_config_io.as_ref() {
|
||||||
Arc::clone(self.pci_segments[0].pci_config_io.as_ref().unwrap())
|
self.bus_devices
|
||||||
as Arc<Mutex<dyn BusDevice>>,
|
.push(Arc::clone(pci_config_io) as Arc<Mutex<dyn BusDevice>>);
|
||||||
);
|
}
|
||||||
|
|
||||||
self.bus_devices
|
self.bus_devices
|
||||||
.push(Arc::clone(&self.pci_segments[0].pci_config_mmio) as Arc<Mutex<dyn BusDevice>>);
|
.push(Arc::clone(&segment.pci_config_mmio) as Arc<Mutex<dyn BusDevice>>);
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user