pub fn restore_state(&self, state: &VmState) -> Result<()> {
        self.fd
            .set_pit2(&state.pitstate)
            .map_err(Error::VmSetPit2)?;
        self.fd.set_clock(&state.clock).map_err(Error::VmSetClock)?;
        self.fd
            .set_irqchip(&state.pic_master)
            .map_err(Error::VmSetIrqChip)?;
        self.fd
            .set_irqchip(&state.pic_slave)
            .map_err(Error::VmSetIrqChip)?;
        self.fd
            .set_irqchip(&state.ioapic)
            .map_err(Error::VmSetIrqChip)?;
        Ok(())
    }
/// Restores the Kvm Vm state.
Restores the Kvm Vm state.
Restores the Kvm Vm state .
pub fn restore_state(&self, state: &VmState) -> Result<()> {
        self.fd
            .set_pit2(&state.pitstate)
            .map_err(Error::VmSetPit2)?;
        self.fd.set_clock(&state.clock).map_err(Error::VmSetClock)?;
        self.fd
            .set_irqchip(&state.pic_master)
            .map_err(Error::VmSetIrqChip)?;
        self.fd
            .set_irqchip(&state.pic_slave)
            .map_err(Error::VmSetIrqChip)?;
        self.fd
            .set_irqchip(&state.ioapic)
            .map_err(Error::VmSetIrqChip)?;
        Ok(())
    }
pub fn restore_state ( & self , state : & VmState ) -> Result < ( ) > { self . fd . set_pit2 ( & state . pitstate ) . map_err ( Error :: VmSetPit2 ) ? ; self . fd . set_clock ( & state . clock ) . map_err ( Error :: VmSetClock ) ? ; self . fd . set_irqchip ( & state . pic_master ) . map_err ( Error :: VmSetIrqChip ) ? ; self . fd . set_irqchip ( & state . pic_slave ) . map_err ( Error :: VmSetIrqChip ) ? ; self . fd . set_irqchip ( & state . ioapic ) . map_err ( Error :: VmSetIrqChip ) ? ; Ok ( ( ) ) }
Restores the Kvm Vm state.
Restores the Kvm Vm state .
&self
state
&VmState
&self
state
&VmState