@@ -77,7 +77,7 @@ impl HyperlightVm {
7777 snapshot_mem : SnapshotSharedMemory < GuestSharedMemory > ,
7878 scratch_mem : GuestSharedMemory ,
7979 _root_pt_addr : u64 ,
80- entrypoint : NextAction ,
80+ next_action : NextAction ,
8181 rsp_gva : u64 ,
8282 page_size : usize ,
8383 #[ cfg_attr( target_os = "windows" , allow( unused_variables) ) ] config : & SandboxConfiguration ,
@@ -141,7 +141,7 @@ impl HyperlightVm {
141141 #[ cfg_attr( not( gdb) , allow( unused_mut) ) ]
142142 let mut ret = Self {
143143 vm,
144- entrypoint ,
144+ next_action ,
145145 rsp_gva,
146146 interrupt_handle,
147147 page_size,
@@ -183,7 +183,7 @@ impl HyperlightVm {
183183 // `one_shot_entry_bp` so it does not interfere with later
184184 // user-installed breakpoints at the same address.
185185 ret. vm . set_debug ( true ) . map_err ( VmError :: Debug ) ?;
186- let entry_addr = match entrypoint {
186+ let entry_addr = match next_action {
187187 NextAction :: Initialise ( addr) | NextAction :: Call ( addr) => Some ( addr) ,
188188 #[ cfg( test) ]
189189 NextAction :: None => None ,
@@ -212,7 +212,7 @@ impl HyperlightVm {
212212 guest_max_log_level : Option < LevelFilter > ,
213213 #[ cfg( gdb) ] dbg_mem_access_fn : Arc < Mutex < SandboxMemoryManager < HostSharedMemory > > > ,
214214 ) -> std:: result:: Result < ( ) , InitializeError > {
215- let NextAction :: Initialise ( initialise) = self . entrypoint else {
215+ let NextAction :: Initialise ( initialise) = self . next_action else {
216216 return Ok ( ( ) ) ;
217217 } ;
218218
@@ -251,7 +251,7 @@ impl HyperlightVm {
251251 return Err ( InitializeError :: InvalidStackPointer ( regs. rsp ) ) ;
252252 }
253253 self . rsp_gva = regs. rsp ;
254- self . entrypoint = NextAction :: Call ( regs. rax ) ;
254+ self . next_action = NextAction :: Call ( regs. rax ) ;
255255
256256 Ok ( ( ) )
257257 }
@@ -284,7 +284,7 @@ impl HyperlightVm {
284284 host_funcs : & Arc < Mutex < FunctionRegistry > > ,
285285 #[ cfg( gdb) ] dbg_mem_access_fn : Arc < Mutex < SandboxMemoryManager < HostSharedMemory > > > ,
286286 ) -> std:: result:: Result < ( ) , DispatchGuestCallError > {
287- let NextAction :: Call ( dispatch_func_addr) = self . entrypoint else {
287+ let NextAction :: Call ( dispatch_func_addr) = self . next_action else {
288288 return Err ( DispatchGuestCallError :: Uninitialized ) ;
289289 } ;
290290 let mut rflags = 1 << 1 ; // RFLAGS.1 is RES1
@@ -567,7 +567,7 @@ impl HyperlightVm {
567567 // Use the stored entry point address from the runtime config.
568568 // This is the original entry point (load_addr + ELF entry offset)
569569 // which GDB needs for AT_ENTRY to compute the PIE load offset.
570- // We cannot use self.entrypoint here because it transitions from
570+ // We cannot use self.next_action here because it transitions from
571571 // Initialise(addr) to Call(dispatch_addr) after guest init.
572572 let initialise = self . rt_cfg . entry_point . unwrap_or_else ( || {
573573 tracing:: warn!(
@@ -2060,7 +2060,7 @@ mod tests {
20602060
20612061 // Re-run from entrypoint (flag=1 means guest skips dirty phase, just does FXSAVE)
20622062 // Use stack_top - 8 to match initialise()'s behavior (simulates call pushing return addr)
2063- let NextAction :: Call ( rip) = ctx. ctx . vm . entrypoint else {
2063+ let NextAction :: Call ( rip) = ctx. ctx . vm . next_action else {
20642064 panic ! ( "entrypoint should be call" ) ;
20652065 } ;
20662066 let regs = CommonRegisters {
0 commit comments