@@ -78,7 +78,7 @@ impl VmHandle {
7878 ) -> Result < Self , VmError > {
7979 info ! ( vm_id = %vm_id, "Creating new VM" ) ;
8080
81- // Step 1: Allocate IP from pool
81+ // Allocate IP from pool
8282 let ip = {
8383 let manager = ip_manager
8484 . lock ( )
@@ -94,11 +94,11 @@ impl VmHandle {
9494
9595 info ! ( vm_id = %vm_id, ip = %ip_addr, "Allocated IP for VM" ) ;
9696
97- // Step 2: Generate unique tap device name
97+ // Generate unique tap device name
9898 let tap_device = generate_tap_device_name ( & vm_id) ;
9999 debug ! ( vm_id = %vm_id, tap = %tap_device, "Generated tap device name" ) ;
100100
101- // Step 3: Build initramfs with agent
101+ // Build initramfs with agent
102102 let initramfs_path = match Self :: build_initramfs_with_agent ( language, config) . await {
103103 Ok ( path) => path,
104104 Err ( e) => {
@@ -117,7 +117,7 @@ impl VmHandle {
117117 ) ) ) ;
118118 }
119119
120- // Step 4: Spawn VMM in a dedicated thread
120+ // Spawn VMM in a dedicated thread
121121 let ( vm_setup_tx, vm_setup_rx) =
122122 std:: sync:: mpsc:: channel :: < Result < Arc < std:: sync:: atomic:: AtomicBool > , VmError > > ( ) ;
123123
@@ -188,7 +188,7 @@ impl VmHandle {
188188 info ! ( "VMM stopped" ) ;
189189 } ) ;
190190
191- // Step 5: Wait for tap device to be created
191+ // Wait for tap device to be created
192192 let vmm_stop = match vm_setup_rx. recv ( ) {
193193 Ok ( Err ( vm_err) ) => {
194194 let _ = Self :: release_ip_internal ( & vm_id, & ip_manager) ;
@@ -209,7 +209,7 @@ impl VmHandle {
209209 }
210210 } ;
211211
212- // Step 6: Attach tap to bridge
212+ // Attach tap to bridge
213213 if let Err ( e) = virt:: network:: setup_guest_iface ( & tap_device, & config. bridge_name ) . await {
214214 error ! ( vm_id = %vm_id, "Failed to attach tap to bridge: {}" , e) ;
215215 let _ = Self :: release_ip_internal ( & vm_id, & ip_manager) ;
@@ -227,7 +227,7 @@ impl VmHandle {
227227 ip_manager,
228228 } ;
229229
230- // Step 7: Wait for agent to be ready
230+ // Wait for agent to be ready
231231 if let Err ( e) = handle. wait_for_agent_ready ( ) . await {
232232 handle. destroy ( ) . await ;
233233 return Err ( e) ;
0 commit comments