Function arch::generate_pci_root
source · pub fn generate_pci_root(
devices: Vec<(Box<dyn PciDevice>, Option<Minijail>)>,
irq_chip: &mut dyn IrqChip,
mmio_bus: Arc<Bus>,
mmio_base: GuestAddress,
mmio_register_bit_num: usize,
io_bus: Arc<Bus>,
resources: &mut SystemAllocator,
vm: &mut impl Vm,
max_irqs: usize,
vcfg_base: Option<u64>,
swap_controller: &mut Option<SwapController>
) -> Result<(PciRoot, Vec<(PciAddress, u32, PciInterruptPin)>, BTreeMap<u32, String>, BTreeMap<PciAddress, Vec<u8>>, BTreeMap<PciAddress, Vec<u8>>), DeviceRegistrationError>
Expand description
Creates a root PCI device for use by this Vm.