File tree 1 file changed +1
-4
lines changed
src/hyperlight_host/src/hypervisor
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -323,7 +323,6 @@ impl HypervisorHandler {
323
323
// call.
324
324
execution_variables. set_thread_id ( unsafe { pthread_self ( ) } ) ?;
325
325
}
326
- execution_variables. running . store ( true , Ordering :: SeqCst ) ;
327
326
328
327
#[ cfg( target_os = "linux" ) ]
329
328
execution_variables. run_cancelled . store ( false ) ;
@@ -392,9 +391,6 @@ impl HypervisorHandler {
392
391
HypervisorHandlerAction :: DispatchCallFromHost ( function_name) => {
393
392
let hv = hv. as_mut ( ) . ok_or_else ( || new_error ! ( "Hypervisor not initialized" ) ) ?;
394
393
395
- // Lock to indicate an action is being performed in the hypervisor
396
- execution_variables. running . store ( true , Ordering :: SeqCst ) ;
397
-
398
394
#[ cfg( target_os = "linux" ) ]
399
395
execution_variables. run_cancelled . store ( false ) ;
400
396
@@ -599,6 +595,7 @@ impl HypervisorHandler {
599
595
// `TerminateHandlerThread`.
600
596
}
601
597
598
+ self . set_running ( true ) ;
602
599
self . communication_channels
603
600
. to_handler_tx
604
601
. send ( hypervisor_handler_action)
You can’t perform that action at this time.
0 commit comments