pub fn configure(
        &mut self,
        guest_mem: &GuestMemoryMmap,
        kernel_load_addr: GuestAddress,
    ) -> Result<()> {
        arch::aarch64::regs::setup_boot_regs(
            &self.fd,
            self.index,
            kernel_load_addr.raw_value(),
            guest_mem,
        )
        .map_err(Error::ConfigureRegisters)?;

        self.mpidr =
            arch::aarch64::regs::read_mpidr(&self.fd).map_err(Error::ConfigureRegisters)?;

        Ok(())
    }
/// Configures an aarch64 specific vcpu for booting Linux.
///
/// # Arguments
///
/// * `guest_mem` - The guest memory used by this microvm.
/// * `kernel_load_addr` - Offset from `guest_mem` at which the kernel is loaded.
Configures an aarch64 specific vcpu for booting Linux.
Configures an aarch64 specific vcpu for booting Linux .
pub fn configure(
        &mut self,
        guest_mem: &GuestMemoryMmap,
        kernel_load_addr: GuestAddress,
    ) -> Result<()> {
        arch::aarch64::regs::setup_boot_regs(
            &self.fd,
            self.index,
            kernel_load_addr.raw_value(),
            guest_mem,
        )
        .map_err(Error::ConfigureRegisters)?;
        self.mpidr =
            arch::aarch64::regs::read_mpidr(&self.fd).map_err(Error::ConfigureRegisters)?;
        Ok(())
    }
pub fn configure ( & mut self , guest_mem : & GuestMemoryMmap , kernel_load_addr : GuestAddress , ) -> Result < ( ) > { arch :: aarch64 :: regs :: setup_boot_regs ( & self . fd , self . index , kernel_load_addr . raw_value ( ) , guest_mem , ) . map_err ( Error :: ConfigureRegisters ) ? ; self . mpidr = arch :: aarch64 :: regs :: read_mpidr ( & self . fd ) . map_err ( Error :: ConfigureRegisters ) ? ; Ok ( ( ) ) }
Configures an aarch64 specific vcpu for booting Linux.
Configures an aarch64 specific vcpu for booting Linux .
&mut self
guest_mem
&GuestMemoryMmap
kernel_load_addr
GuestAddress
&mut self
guest_mem
&GuestMemoryMmap
kernel_load_addr
GuestAddress