vmm: Remove the Vmm structure

The Vmm structure is just a placeholder for the KVM instance. We can
create it directly from the VM creation routine instead.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2019-09-24 01:12:07 +02:00
parent 9c5135da7a
commit bdfd1a3f38
3 changed files with 8 additions and 18 deletions

View File

@@ -285,7 +285,7 @@ fn main() {
vm_config.disks,
);
if let Err(e) = vmm::boot_kernel(vm_config) {
if let Err(e) = vmm::start_vm_loop(vm_config) {
println!("Guest boot failed: {}", e);
process::exit(1);
}