vmm: Propagate boot_kernel errors properly

So that our error traces are more meaningful.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2019-05-10 10:46:27 +02:00
parent 43965eda6f
commit 2c94529660
2 changed files with 35 additions and 5 deletions

View File

@@ -120,5 +120,7 @@ fn main() {
)
.unwrap();
vmm::boot_kernel(vm_config).unwrap();
if let Err(e) = vmm::boot_kernel(vm_config) {
println!("Guest boot failed: {}", e);
}
}