fn exit(&mut self, exit_code: u8) -> StateMachine<Self> {
        self.response_sender
            .send(VcpuResponse::Exited(exit_code))
            .expect("failed to send Exited status");

        if let Err(e) = self.exit_evt.write(1) {
            error!("Failed signaling vcpu exit event: {}", e);
        }

        // State machine reached its end.
        StateMachine::next(Self::exited)
    }
// Transition to the exited state.
Transition to the exited state.
Transition to the exited state .
fn exit(&mut self, exit_code: u8) -> StateMachine<Self> {
        self.response_sender
            .send(VcpuResponse::Exited(exit_code))
            .expect("failed to send Exited status");
        if let Err(e) = self.exit_evt.write(1) {
            error!("Failed signaling vcpu exit event: {}", e);
        }
        // State machine reached its end.
        StateMachine::next(Self::exited)
    }
fn exit ( & mut self , exit_code : u8 ) -> StateMachine < Self > { self . response_sender . send ( VcpuResponse :: Exited ( exit_code ) ) . expect ( " " ) ; if let Err ( e ) = self . exit_evt . write ( 1 ) { error ! ( " " e ) ; } // State machine reached its end. StateMachine :: next ( Self :: exited ) }
Transition to the exited state.
Transition to the exited state .
&mut self
exit_code
u8