Skip to content

Commit f611a5d

Browse files
committed
Remove existing hypervisor_handler thread and associated
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent f94e7a7 commit f611a5d

File tree

9 files changed

+256
-1712
lines changed

9 files changed

+256
-1712
lines changed

src/hyperlight_host/src/error.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -122,22 +122,6 @@ pub enum HyperlightError {
122122
#[error("HostFunction {0} was not found")]
123123
HostFunctionNotFound(String),
124124

125-
/// An attempt to communicate with or from the Hypervisor Handler thread failed
126-
/// (i.e., usually a failure call to `.send()` or `.recv()` on a message passing
127-
/// channel)
128-
#[error("Communication failure with the Hypervisor Handler thread")]
129-
HypervisorHandlerCommunicationFailure(),
130-
131-
/// An attempt to cancel a Hypervisor Handler execution failed.
132-
/// See `terminate_hypervisor_handler_execution_and_reinitialise`
133-
/// for more details.
134-
#[error("Hypervisor Handler execution cancel attempt on a finished execution")]
135-
HypervisorHandlerExecutionCancelAttemptOnFinishedExecution(),
136-
137-
/// A Receive for a Hypervisor Handler Message Timedout
138-
#[error("Hypervisor Handler Message Receive Timedout")]
139-
HypervisorHandlerMessageReceiveTimedout(),
140-
141125
/// Reading Writing or Seeking data failed.
142126
#[error("Reading Writing or Seeking data failed {0:?}")]
143127
IOError(#[from] std::io::Error),

src/hyperlight_host/src/func/call_ctx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use hyperlight_common::flatbuffer_wrappers::function_types::{
1919
};
2020
use tracing::{instrument, Span};
2121

22-
use super::guest_dispatch::call_function_on_guest;
2322
use crate::{MultiUseSandbox, Result};
2423
/// A context for calling guest functions.
2524
///
@@ -72,7 +71,8 @@ impl MultiUseGuestCallContext {
7271
// !Send (and !Sync), we also don't need to worry about
7372
// synchronization
7473

75-
call_function_on_guest(&mut self.sbox, func_name, func_ret_type, args)
74+
self.sbox
75+
.call_guest_function_by_name_no_reset(func_name, func_ret_type, args)
7676
}
7777

7878
/// Close out the context and get back the internally-stored

0 commit comments

Comments
 (0)