Function arch::generate_virtio_mmio_bus
source · pub fn generate_virtio_mmio_bus(
devices: Vec<(VirtioMmioDevice, Option<Minijail>)>,
irq_chip: &mut dyn IrqChip,
mmio_bus: &Bus,
resources: &mut SystemAllocator,
vm: &mut impl Vm,
sdts: Vec<SDT>,
swap_controller: &mut Option<SwapController>
) -> Result<(BTreeMap<u32, String>, Vec<SDT>), DeviceRegistrationError>
Expand description
Creates Virtio MMIO devices for use by this Vm.