pub fn configure_system<T: DeviceInfoForFDT + Clone + Debug, S: std::hash::BuildHasher>(
    guest_mem: &GuestMemoryMmap,
    cmdline_cstring: &str,
    vcpu_mpidr: Vec<u64>,
    device_info: &HashMap<(DeviceType, String), T, S>,
    gic_device: &dyn GICDevice,
    initrd: &Option<super::InitrdConfig>,
) -> super::Result<()> {
    fdt::create_fdt(
        guest_mem,
        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, S: std::hash::BuildHasher>(
    guest_mem: &GuestMemoryMmap,
    cmdline_cstring: &str,
    vcpu_mpidr: Vec<u64>,
    device_info: &HashMap<(DeviceType, String), T, S>,
    gic_device: &dyn GICDevice,
    initrd: &Option<super::InitrdConfig>,
) -> super::Result<()> {
    fdt::create_fdt(
        guest_mem,
        vcpu_mpidr,
        cmdline_cstring,
        device_info,
        gic_device,
        initrd,
    )
    .map_err(Error::SetupFDT)?;
    Ok(())
}
pub fn configure_system < T : DeviceInfoForFDT + Clone + Debug , S : std :: hash :: BuildHasher > ( guest_mem : & GuestMemoryMmap , cmdline_cstring : & str , vcpu_mpidr : Vec < u64 > , device_info : & HashMap < ( DeviceType , String ) , T , S > , gic_device : & dyn GICDevice , initrd : & Option < super :: InitrdConfig > , ) -> super :: Result < ( ) > { fdt :: create_fdt ( guest_mem , 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
cmdline_cstring
&str
vcpu_mpidr
Vec<u64>
device_info
&HashMap<(DeviceType, String), T, S>
gic_device
&dyn GICDevice
initrd
&Option<super::InitrdConfig>
guest_mem
&GuestMemoryMmap
cmdline_cstring
&str
vcpu_mpidr
Vec<u64>
device_info
&HashMap<(DeviceType, String), T, S>
gic_device
&dyn GICDevice
initrd
&Option<super::InitrdConfig>