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
+1
View File
@@ -11,6 +11,7 @@ epoll = "=4.0.1"
kvm-bindings = "0.1"
kvm-ioctls = "0.1.0"
libc = ">=0.2.39"
log = "*"
net_util = { path = "../net_util" }
pci = {path = "../pci"}
qcow = { path = "../qcow" }