Skip to content
Merged
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
5 changes: 1 addition & 4 deletions src/hyperlight_host/src/hypervisor/hypervisor_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ impl HypervisorHandler {
// call.
execution_variables.set_thread_id(unsafe { pthread_self() })?;
}
execution_variables.running.store(true, Ordering::SeqCst);

#[cfg(target_os = "linux")]
execution_variables.run_cancelled.store(false);
Expand Down Expand Up @@ -392,9 +391,6 @@ impl HypervisorHandler {
HypervisorHandlerAction::DispatchCallFromHost(function_name) => {
let hv = hv.as_mut().ok_or_else(|| new_error!("Hypervisor not initialized"))?;

// Lock to indicate an action is being performed in the hypervisor
execution_variables.running.store(true, Ordering::SeqCst);

#[cfg(target_os = "linux")]
execution_variables.run_cancelled.store(false);

Expand Down Expand Up @@ -599,6 +595,7 @@ impl HypervisorHandler {
// `TerminateHandlerThread`.
}

self.set_running(true);
self.communication_channels
.to_handler_tx
.send(hypervisor_handler_action)
Expand Down