vmm: Factorize the vm boot and shutdown code

So that the API handling state machine is cleaner and easier to read.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2019-10-01 17:03:38 +02:00
parent 43b3642955
commit f9daf2e247
2 changed files with 37 additions and 45 deletions

View File

@@ -213,6 +213,9 @@ pub enum Error {
/// VM is not created
VmNotCreated,
/// VM is not bootted
VmNotBooted,
/// Cannot clone EventFd.
EventFdClone(io::Error),
}