vmm: Simplify the vcpu run switch

Use a catchall case for all reasons that we do not handle, and
move the vCPU run switch into its own function.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2019-05-19 04:24:47 +02:00
committed by Sebastien Boeuf
parent 6615d55223
commit 8bb71fad76
4 changed files with 51 additions and 67 deletions

View File

@@ -4,6 +4,8 @@
//
extern crate kvm_ioctls;
#[macro_use]
extern crate log;
use kvm_ioctls::*;
use std::fmt::{self, Display};