pub fn restore_state(&self, state: &VcpuState) -> Result<()> {
        arch::regs::restore_registers(&self.fd, &state.regs).map_err(Error::RestoreState)?;

        arch::regs::set_mpstate(&self.fd, state.mp_state).map_err(Error::RestoreState)?;

        Ok(())
    }
/// Use provided state to populate KVM internal state.
Use provided state to populate KVM internal state.
Use provided state to populate KVM internal state .
pub fn restore_state(&self, state: &VcpuState) -> Result<()> {
        arch::regs::restore_registers(&self.fd, &state.regs).map_err(Error::RestoreState)?;
        arch::regs::set_mpstate(&self.fd, state.mp_state).map_err(Error::RestoreState)?;
        Ok(())
    }
pub fn restore_state ( & self , state : & VcpuState ) -> Result < ( ) > { arch :: regs :: restore_registers ( & self . fd , & state . regs ) . map_err ( Error :: RestoreState ) ? ; arch :: regs :: set_mpstate ( & self . fd , state . mp_state ) . map_err ( Error :: RestoreState ) ? ; Ok ( ( ) ) }
Use provided state to populate KVM internal state.
Use provided state to populate KVM internal state .
&self
state
&VcpuState
&self
state
&VcpuState