vmm: Basic Vcpu implementation

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2019-02-28 15:26:30 +01:00
parent 539367b58c
commit 0921cfb8f8
4 changed files with 213 additions and 5 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ pub fn boot_kernel(kernel: &Path) -> Result<()> {
let vmm = Vmm::new()?;
let mut vm = Vm::new(&vmm.kvm, kernel)?;
vm.load_kernel()?;
vm.start()?;
let entry = vm.load_kernel()?;
vm.start(entry)?;
Ok(())
}