vmm: Rename Booted vm state to Running

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2019-10-10 18:00:44 +02:00
committed by Sebastien Boeuf
parent dbbd04a4cf
commit d2d3abb13c
2 changed files with 9 additions and 9 deletions

View File

@@ -213,8 +213,8 @@ pub enum Error {
/// VM is not created
VmNotCreated,
/// VM is not bootted
VmNotBooted,
/// VM is not running
VmNotRunning,
/// Cannot clone EventFd.
EventFdClone(io::Error),
@@ -439,7 +439,7 @@ pub struct VmInfo<'a> {
#[derive(Clone, Debug, Deserialize, Serialize)]
pub enum VmState {
Created,
Booted,
Running,
Shutdown,
Paused,
}
@@ -843,9 +843,9 @@ impl Vm {
vcpu_thread.thread().unpark();
}
// And we're back to Booted state.
// And we're back to the Running state.
let mut state = self.state.try_write().map_err(|_| Error::PoisonedState)?;
*state = VmState::Booted;
*state = VmState::Running;
Ok(())
}
@@ -965,7 +965,7 @@ impl Vm {
}
let mut state = self.state.try_write().map_err(|_| Error::PoisonedState)?;
*state = VmState::Booted;
*state = VmState::Running;
Ok(())
}