Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/hyperlight_host/src/hypervisor/virtual_machine/kvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ pub(crate) fn is_hypervisor_present() -> bool {
match api_version {
version if version == 12 && kvm.check_extension(UserMemory) => true,
12 => {
log::info!("KVM does not have KVM_CAP_USER_MEMORY capability");
tracing::info!("KVM does not have KVM_CAP_USER_MEMORY capability");
false
}
version => {
log::info!("KVM GET_API_VERSION returned {}, expected 12", version);
tracing::info!("KVM GET_API_VERSION returned {}, expected 12", version);
false
}
}
} else {
log::info!("KVM is not available on this system");
tracing::info!("KVM is not available on this system");
false
}
}
Expand Down Expand Up @@ -346,7 +346,7 @@ impl DebuggableVm for KvmVm {
fn set_debug(&mut self, enable: bool) -> std::result::Result<(), DebugError> {
use kvm_bindings::{KVM_GUESTDBG_ENABLE, KVM_GUESTDBG_USE_HW_BP, KVM_GUESTDBG_USE_SW_BP};

log::info!("Setting debug to {}", enable);
tracing::info!("Setting debug to {}", enable);
if enable {
self.debug_regs.control |=
KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_USE_HW_BP | KVM_GUESTDBG_USE_SW_BP;
Expand All @@ -363,7 +363,7 @@ impl DebuggableVm for KvmVm {
fn set_single_step(&mut self, enable: bool) -> std::result::Result<(), DebugError> {
use kvm_bindings::KVM_GUESTDBG_SINGLESTEP;

log::info!("Setting single step to {}", enable);
tracing::info!("Setting single step to {}", enable);
if enable {
self.debug_regs.control |= KVM_GUESTDBG_SINGLESTEP;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub(crate) fn is_hypervisor_present() -> bool {
match Mshv::new() {
Ok(_) => true,
Err(_) => {
log::info!("MSHV is not available on this system");
tracing::info!("MSHV is not available on this system");
false
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/hyperlight_host/src/hypervisor/virtual_machine/whp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub(crate) fn is_hypervisor_present() -> bool {
} {
Ok(_) => unsafe { capability.HypervisorPresent.as_bool() },
Err(_) => {
log::info!("Windows Hypervisor Platform is not available on this system");
tracing::info!("Windows Hypervisor Platform is not available on this system");
false
}
}
Expand Down Expand Up @@ -770,7 +770,7 @@ impl Drop for WhpVm {
// (HyperlightVm::drop() runs before its fields are dropped, so
// set_dropped() completes before this Drop impl runs.)
if let Err(e) = unsafe { WHvDeletePartition(self.partition) } {
log::error!("Failed to delete partition: {}", e);
tracing::error!("Failed to delete partition: {}", e);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/hyperlight_host/src/sandbox/trace/mem_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl MemTraceInfo {
path.push(uuid::Uuid::new_v4().to_string());
path.set_extension("trace");

log::info!("Creating trace file at: {}", path.display());
tracing::info!("Creating trace file at: {}", path.display());
println!("Creating trace file at: {}", path.display());

let hash = unwind_module.hash();
Expand Down