@@ -45,7 +45,7 @@ use crate::sandbox::{HostSharedMemory, MemMgrWrapper};
4545use crate :: signal_handlers:: setup_signal_handlers;
4646use crate :: { Result , Sandbox , UninitializedSandbox , log_then_return, new_error} ;
4747
48- /// The implementation for evolving `UninitializedSandbox`es to
48+ /// The implementation for initializing `UninitializedSandbox`es to
4949/// `Sandbox`es.
5050///
5151/// Note that `cb_opt`'s type has been carefully considered.
@@ -57,7 +57,7 @@ use crate::{Result, Sandbox, UninitializedSandbox, log_then_return, new_error};
5757/// If this doesn't make sense, and you want to change this type,
5858/// please reach out to a Hyperlight developer before making the change.
5959#[ instrument( err( Debug ) , skip_all, , parent = Span :: current( ) , level = "Trace" ) ]
60- fn evolve_impl < TransformFunc , ResSandbox > (
60+ fn init_impl < TransformFunc , ResSandbox > (
6161 u_sbox : UninitializedSandbox ,
6262 transform : TransformFunc ,
6363) -> Result < ResSandbox >
@@ -120,8 +120,8 @@ where
120120}
121121
122122#[ instrument( err( Debug ) , skip_all, parent = Span :: current( ) , level = "Trace" ) ]
123- pub ( super ) fn evolve_impl_multi_use ( u_sbox : UninitializedSandbox ) -> Result < Sandbox > {
124- evolve_impl ( u_sbox, |hf, hshm, vm, dispatch_ptr| {
123+ pub ( super ) fn init_impl_multi_use ( u_sbox : UninitializedSandbox ) -> Result < Sandbox > {
124+ init_impl ( u_sbox, |hf, hshm, vm, dispatch_ptr| {
125125 #[ cfg( gdb) ]
126126 let dbg_mem_wrapper = dbg_mem_access_handler_wrapper ( hshm. clone ( ) ) ;
127127 Ok ( Sandbox :: from_uninit (
@@ -275,12 +275,12 @@ pub(crate) fn set_up_hypervisor_partition(
275275mod tests {
276276 use hyperlight_testing:: { callback_guest_as_string, simple_guest_as_string} ;
277277
278- use super :: evolve_impl_multi_use ;
278+ use super :: init_impl_multi_use ;
279279 use crate :: UninitializedSandbox ;
280280 use crate :: sandbox:: uninitialized:: GuestBinary ;
281281
282282 #[ test]
283- fn test_evolve ( ) {
283+ fn test_init ( ) {
284284 let guest_bin_paths = vec ! [
285285 simple_guest_as_string( ) . unwrap( ) ,
286286 callback_guest_as_string( ) . unwrap( ) ,
@@ -289,7 +289,7 @@ mod tests {
289289 let u_sbox =
290290 UninitializedSandbox :: new ( GuestBinary :: FilePath ( guest_bin_path. clone ( ) ) , None )
291291 . unwrap ( ) ;
292- evolve_impl_multi_use ( u_sbox) . unwrap ( ) ;
292+ init_impl_multi_use ( u_sbox) . unwrap ( ) ;
293293 }
294294 }
295295}
0 commit comments