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

Commit a2bd24e

Browse files
committed
Removed code, that's used for debugging.
1 parent 99bb0b0 commit a2bd24e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

hypervisor/src/intel/vmexit/cpuid.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use {
55
crate::{
66
error::HypervisorError,
77
intel::{
8-
hooks::hook_manager::SHARED_HOOK_MANAGER,
98
vm::Vm,
109
vmexit::{commands::handle_guest_commands, ExitType},
1110
},
@@ -127,8 +126,9 @@ pub fn handle_cpuid(vm: &mut Vm) -> Result<ExitType, HypervisorError> {
127126
leaf if leaf == CpuidLeaf::CacheInformation as u32 => {
128127
trace!("CPUID leaf 0x2 detected (Cache Information).");
129128

129+
/*
130130
// Lock the shared hook manager
131-
let mut hook_manager = SHARED_HOOK_MANAGER.lock();
131+
let mut hook_manager = crate::intel::hooks::hook_manager::SHARED_HOOK_MANAGER.lock();
132132
133133
if !hook_manager.has_cpuid_cache_info_been_called {
134134
// Test UEFI boot-time hooks
@@ -163,6 +163,7 @@ pub fn handle_cpuid(vm: &mut Vm) -> Result<ExitType, HypervisorError> {
163163
// Set the flag
164164
hook_manager.has_cpuid_cache_info_been_called = true;
165165
}
166+
*/
166167
}
167168
leaf if leaf == CpuidLeaf::ExtendedFeatureInformation as u32 => {
168169
trace!("CPUID leaf 0x7 detected (Extended Feature Information).");

uefi/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn main(_image_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
6666
}
6767

6868
// Initialize logging with the COM2 port and set the level filter to Debug.
69-
logger::init(SerialPort::COM1, LevelFilter::Trace);
69+
logger::init(SerialPort::COM1, LevelFilter::Info);
7070

7171
info!("The Matrix is an illusion");
7272

0 commit comments

Comments
 (0)