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

Commit

Permalink
Commented out test hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
memN0ps committed Jun 10, 2024
1 parent 107f9b2 commit d145075
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hypervisor/src/intel/vmexit/cpuid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ pub fn handle_cpuid(vm: &mut Vm) -> Result<ExitType, HypervisorError> {
leaf if leaf == CpuidLeaf::CacheInformation as u32 => {
trace!("CPUID leaf 0x2 detected (Cache Information).");
if vm.hook_manager.has_cpuid_cache_info_been_called == false {
/*
// Test UEFI boot-time hooks
if let Some(mut kernel_hook) = vm.hook_manager.kernel_hook.take() {
info!("Hooking NtQuerySystemInformation with syscall number 0x36");
Expand Down Expand Up @@ -158,6 +159,7 @@ pub fn handle_cpuid(vm: &mut Vm) -> Result<ExitType, HypervisorError> {
} else {
return Err(HypervisorError::KernelHookMissing);
}
*/
}
}
leaf if leaf == CpuidLeaf::ExtendedFeatureInformation as u32 => {
Expand Down

0 comments on commit d145075

Please sign in to comment.