Skip to content

Commit 8b7a60c

Browse files
Copilotjsturtevant
andcommitted
Remove error logging for WHvCancelRunVirtualProcessor failure
Removed the error logging that was added for WHvCancelRunVirtualProcessor failures as requested. The method now simply returns the result of is_ok() without logging. Co-authored-by: jsturtevant <[email protected]>
1 parent 28890e7 commit 8b7a60c

File tree

1 file changed

+1
-8
lines changed
  • src/hyperlight_host/src/hypervisor

1 file changed

+1
-8
lines changed

src/hyperlight_host/src/hypervisor/mod.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -551,14 +551,7 @@ impl InterruptHandle for WindowsInterruptHandle {
551551
return false;
552552
}
553553

554-
let result = unsafe { WHvCancelRunVirtualProcessor(guard.handle, 0, 0) };
555-
match result {
556-
Ok(_) => true,
557-
Err(e) => {
558-
log::error!("Failed to cancel running virtual processor: {}", e);
559-
false
560-
}
561-
}
554+
unsafe { WHvCancelRunVirtualProcessor(guard.handle, 0, 0).is_ok() }
562555
}
563556
#[cfg(gdb)]
564557
fn kill_from_debugger(&self) -> bool {

0 commit comments

Comments
 (0)