Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit a643c66

Browse files
committed
Update vmm.rs
1 parent 2665672 commit a643c66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hypervisor/src/vmm.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ pub fn start_hypervisor(guest_registers: &GuestRegisters, shared_data: &mut Shar
4545
Err(e) => panic!("Failed to activate VMCS: {:?}", e),
4646
}
4747

48+
info!("Launching the VM until a vmexit occurs...");
49+
4850
loop {
4951
if let Ok(basic_exit_reason) = vm.run() {
5052
let exit_type = match basic_exit_reason {
51-
//VmxBasicExitReason::ExceptionOrNmi => handle_exception(vmx),
53+
VmxBasicExitReason::ExceptionOrNmi => handle_exception(&mut vm),
5254
VmxBasicExitReason::Cpuid => handle_cpuid(&mut vm.guest_registers),
5355

5456
// Grouping multiple exit reasons that are handled by the same function

0 commit comments

Comments
 (0)