pub fn configure_system<T: DeviceInfoForFDT + Clone + Debug>(
    guest_mem: &GuestMemoryMmap,
    arch_memory_info: &ArchMemoryInfo,
    cmdline_cstring: &CStr,
    vcpu_mpidr: Vec<u64>,
    device_info: &HashMap<(DeviceType, String), T>,
    gic_device: &Box<dyn GICDevice>,
    initrd: &Option<super::InitrdConfig>,
) -> super::Result<()> {
    fdt::create_fdt(
        guest_mem,
        arch_memory_info,
        vcpu_mpidr,
        cmdline_cstring,
        device_info,
        gic_device,
        initrd,
    )
    .map_err(Error::SetupFDT)?;
    Ok(())
}
/// Configures the system and should be called once per vm before starting vcpu threads.
/// For aarch64, we only setup the FDT.
///
/// # Arguments
///
/// * `guest_mem` - The memory to be used by the guest.
/// * `cmdline_cstring` - The kernel commandline.
/// * `vcpu_mpidr` - Array of MPIDR register values per vcpu.
/// * `device_info` - A hashmap containing the attached devices for building FDT device nodes.
/// * `gic_device` - The GIC device.
/// * `initrd` - Information about an optional initrd.
Configures the system and should be called once per vm before starting vcpu threads.
For aarch64, we only setup the FDT.
Configures the system and should be called once per vm before starting vcpu threads . For aarch64 we only setup the FDT .
pub fn configure_system<T: DeviceInfoForFDT + Clone + Debug>(
    guest_mem: &GuestMemoryMmap,
    arch_memory_info: &ArchMemoryInfo,
    cmdline_cstring: &CStr,
    vcpu_mpidr: Vec<u64>,
    device_info: &HashMap<(DeviceType, String), T>,
    gic_device: &Box<dyn GICDevice>,
    initrd: &Option<super::InitrdConfig>,
) -> super::Result<()> {
    fdt::create_fdt(
        guest_mem,
        arch_memory_info,
        vcpu_mpidr,
        cmdline_cstring,
        device_info,
        gic_device,
        initrd,
    )
    .map_err(Error::SetupFDT)?;
    Ok(())
}
pub fn configure_system < T : DeviceInfoForFDT + Clone + Debug > ( guest_mem : & GuestMemoryMmap , arch_memory_info : & ArchMemoryInfo , cmdline_cstring : & CStr , vcpu_mpidr : Vec < u64 > , device_info : & HashMap < ( DeviceType , String ) , T > , gic_device : & Box < dyn GICDevice > , initrd : & Option < super :: InitrdConfig > , ) -> super :: Result < ( ) > { fdt :: create_fdt ( guest_mem , arch_memory_info , vcpu_mpidr , cmdline_cstring , device_info , gic_device , initrd , ) . map_err ( Error :: SetupFDT ) ? ; Ok ( ( ) ) }
Configures the system and should be called once per vm before starting vcpu threads.
Configures the system and should be called once per vm before starting vcpu threads .
guest_mem
&GuestMemoryMmap
arch_memory_info
&ArchMemoryInfo
cmdline_cstring
&CStr
vcpu_mpidr
Vec<u64>
device_info
&HashMap<(DeviceType, String), T>
gic_device
&Box<dyn GICDevice>
initrd
&Option<super::InitrdConfig>