Skip to content

Commit c8e471e

Browse files
Copilotjsturtevant
andcommitted
Add error logging for WHvCancelRunVirtualProcessor failure
Co-authored-by: jsturtevant <648372+jsturtevant@users.noreply.github.com>
1 parent c34ddfa commit c8e471e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • src/hyperlight_host/src/hypervisor

src/hyperlight_host/src/hypervisor/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,11 @@ impl InterruptHandle for WindowsInterruptHandle {
543543
return;
544544
}
545545

546-
unsafe { WHvCancelRunVirtualProcessor(guard.handle, 0, 0).ok() };
546+
unsafe {
547+
if let Err(e) = WHvCancelRunVirtualProcessor(guard.handle, 0, 0) {
548+
log::error!("Failed to cancel running virtual processor: {}", e);
549+
}
550+
};
547551
}
548552
#[cfg(gdb)]
549553
fn kill_from_debugger(&self) -> bool {

0 commit comments

Comments
 (0)