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

Commit

Permalink
Update vmm.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
memN0ps committed Feb 17, 2024
1 parent 2665672 commit a643c66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hypervisor/src/vmm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ pub fn start_hypervisor(guest_registers: &GuestRegisters, shared_data: &mut Shar
Err(e) => panic!("Failed to activate VMCS: {:?}", e),
}

info!("Launching the VM until a vmexit occurs...");

loop {
if let Ok(basic_exit_reason) = vm.run() {
let exit_type = match basic_exit_reason {
//VmxBasicExitReason::ExceptionOrNmi => handle_exception(vmx),
VmxBasicExitReason::ExceptionOrNmi => handle_exception(&mut vm),
VmxBasicExitReason::Cpuid => handle_cpuid(&mut vm.guest_registers),

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

0 comments on commit a643c66

Please sign in to comment.