vmm: Refactor slightly vm_boot and 'control_loop'

It ensures all handlers for `ApiRequest` in `control_loop` are
consistent and minimum and should read better.

No functional changes.

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen
2021-06-24 06:29:08 -07:00
committed by Sebastien Boeuf
parent 1075209e2a
commit 5768dcc320
3 changed files with 8 additions and 11 deletions
+3
View File
@@ -142,6 +142,9 @@ pub enum Error {
/// Failed to join on vCPU threads
ThreadCleanup(std::boxed::Box<dyn std::any::Any + std::marker::Send>),
/// VM config is missing.
VmMissingConfig,
/// VM is not created
VmNotCreated,