pub fn restore_registers(vcpu: &VcpuFd, state: &[kvm_one_reg]) -> Result<()> {
    for reg in state {
        vcpu.set_one_reg(reg.id, reg.addr)
            .map_err(Error::SetRegister)?;
    }
    Ok(())
}
/// Set the state of the system registers.
///
/// # Arguments
///
/// * `vcpu` - Structure for the VCPU that holds the VCPU's fd.
/// * `state` - Structure containing the state of the system registers.
Set the state of the system registers.
Set the state of the system registers .
pub fn restore_registers(vcpu: &VcpuFd, state: &[kvm_one_reg]) -> Result<()> {
    for reg in state {
        vcpu.set_one_reg(reg.id, reg.addr)
            .map_err(Error::SetRegister)?;
    }
    Ok(())
}
pub fn restore_registers ( vcpu : & VcpuFd , state : & [ kvm_one_reg ] ) -> Result < ( ) > { for reg in state { vcpu . set_one_reg ( reg . id , reg . addr ) . map_err ( Error :: SetRegister ) ? ; } Ok ( ( ) ) }
Set the state of the system registers.
Set the state of the system registers .
vcpu
&VcpuFd
state
&[kvm_one_reg]
vcpu
&VcpuFd
state
&[kvm_one_reg]