pub fn save_state(&self) -> Result<VcpuState> {
        let mut state = VcpuState {
            mp_state: arch::regs::get_mpstate(&self.fd).map_err(Error::SaveState)?,
            ..Default::default()
        };

        arch::regs::save_core_registers(&self.fd, &mut state.regs).map_err(Error::SaveState)?;

        arch::regs::save_system_registers(&self.fd, &mut state.regs).map_err(Error::SaveState)?;

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

        Ok(state)
    }
/// Save the KVM internal state.
Save the KVM internal state.
Save the KVM internal state .
pub fn save_state(&self) -> Result<VcpuState> {
        let mut state = VcpuState {
            mp_state: arch::regs::get_mpstate(&self.fd).map_err(Error::SaveState)?,
            ..Default::default()
        };
        arch::regs::save_core_registers(&self.fd, &mut state.regs).map_err(Error::SaveState)?;
        arch::regs::save_system_registers(&self.fd, &mut state.regs).map_err(Error::SaveState)?;
        state.mpidr = arch::aarch64::regs::read_mpidr(&self.fd).map_err(Error::SaveState)?;
        Ok(state)
    }
pub fn save_state ( & self ) -> Result < VcpuState > { let mut state = VcpuState { mp_state : arch :: regs :: get_mpstate ( & self . fd ) . map_err ( Error :: SaveState ) ? , .. Default :: default ( ) } ; arch :: regs :: save_core_registers ( & self . fd , & mut state . regs ) . map_err ( Error :: SaveState ) ? ; arch :: regs :: save_system_registers ( & self . fd , & mut state . regs ) . map_err ( Error :: SaveState ) ? ; state . mpidr = arch :: aarch64 :: regs :: read_mpidr ( & self . fd ) . map_err ( Error :: SaveState ) ? ; Ok ( state ) }
Save the KVM internal state.
Save the KVM internal state .
&self
&self