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

Commit

Permalink
Update vmcall.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
memN0ps committed Jun 13, 2024
1 parent d145075 commit 840b237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hypervisor/src/intel/vmexit/vmcall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub enum VmcallCommand {
///
/// * `HypervisorError::UnknownVmcallCommand`: Returned if the VMCALL command is not recognized.
pub fn handle_vmcall(vm: &mut Vm) -> Result<ExitType, HypervisorError> {
debug!("Handling VMCALL VM exit...");
trace!("Handling VMCALL VM exit...");
trace!("Register state before handling VM exit: {:?}", vm.guest_registers);

let vmcall_number = vm.guest_registers.rax;
Expand Down Expand Up @@ -85,7 +85,7 @@ pub fn handle_vmcall(vm: &mut Vm) -> Result<ExitType, HypervisorError> {
.get_hook_info_by_function_pa(guest_page_pa.as_u64(), guest_function_pa.as_u64())
.ok_or(HypervisorError::HookInfoNotFound)?;

trace!("Hook info: {:#x?}", hook_info);
debug!("Hook info: {:#x?}", hook_info);

// Calculate the number of instructions in the function to set the MTF counter for restoring overwritten instructions by single-stepping.
// (NOTE: CHANGE HOOK SIZE IF YOU MOVE THIS INTO CPUID OR INT3)
Expand Down

0 comments on commit 840b237

Please sign in to comment.