Skip to content

Commit 288faa1

Browse files
committed
fixup! Add InterruptHandle trait, and implement trait for mshv,kvm and windows
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 4abdd49 commit 288faa1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hyperlight_host/src/hypervisor/hyperv_windows.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl HypervWindowsDriver {
108108
mem_regions,
109109
interrupt_handle: Arc::new(WindowsInterruptHandle {
110110
running: AtomicBool::new(false),
111-
parition_handle: partition_handle,
111+
partition_handle: partition_handle,
112112
dropped: AtomicBool::new(false),
113113
}),
114114
})
@@ -509,14 +509,14 @@ impl Drop for HypervWindowsDriver {
509509
pub struct WindowsInterruptHandle {
510510
// `WHvCancelRunVirtualProcessor()` will return Ok even if the vcpu is not running, which is the reason we need this flag.
511511
running: AtomicBool,
512-
parition_handle: WHV_PARTITION_HANDLE,
512+
partition_handle: WHV_PARTITION_HANDLE,
513513
dropped: AtomicBool,
514514
}
515515

516516
impl InterruptHandle for WindowsInterruptHandle {
517517
fn kill(&self) -> bool {
518518
self.running.load(Ordering::Relaxed)
519-
&& unsafe { WHvCancelRunVirtualProcessor(self.parition_handle, 0, 0).is_ok() }
519+
&& unsafe { WHvCancelRunVirtualProcessor(self.partition_handle, 0, 0).is_ok() }
520520
}
521521

522522
fn dropped(&self) -> bool {

0 commit comments

Comments
 (0)