@@ -2732,23 +2732,6 @@ and perform_exn ?result (op : operation) (t : Xenops_task.task_handle) : unit =
2732
2732
) ;
2733
2733
debug " VM.migrate: Synchronisation point 1"
2734
2734
in
2735
- let pause_src_vm () =
2736
- debug
2737
- " VM.migrate: pause src vm before allowing destination to proceed" ;
2738
- (* cleanup tmp src VM *)
2739
- let atomics =
2740
- [
2741
- VM_hook_script_stable
2742
- ( id
2743
- , Xenops_hooks. VM_pre_destroy
2744
- , Xenops_hooks. reason__suspend
2745
- , new_src_id
2746
- )
2747
- ]
2748
- @ atomics_of_operation (VM_shutdown (new_src_id, None ))
2749
- in
2750
- perform_atomics atomics t
2751
- in
2752
2735
let final_handshake () =
2753
2736
Handshake. send vm_fd Handshake. Success ;
2754
2737
debug " VM.migrate: Synchronisation point 3" ;
@@ -2789,10 +2772,7 @@ and perform_exn ?result (op : operation) (t : Xenops_task.task_handle) : unit =
2789
2772
the main VM migration sequence. *)
2790
2773
match VGPU_DB. ids id with
2791
2774
| [] ->
2792
- first_handshake () ;
2793
- save () ;
2794
- pause_src_vm () ;
2795
- final_handshake ()
2775
+ first_handshake () ; save () ; final_handshake ()
2796
2776
| (_vm_id , dev_id ) :: _ ->
2797
2777
let url =
2798
2778
make_url " /migrate/vgpu/"
@@ -2809,12 +2789,20 @@ and perform_exn ?result (op : operation) (t : Xenops_task.task_handle) : unit =
2809
2789
first_handshake () ;
2810
2790
save ~vgpu_fd: (FD vgpu_fd) ()
2811
2791
) ;
2812
- pause_src_vm () ;
2813
2792
final_handshake ()
2814
2793
) ;
2815
- let cleanup_src_vm () =
2816
- let atomics =
2817
- [
2794
+ (* cleanup tmp src VM *)
2795
+ let atomics =
2796
+ [
2797
+ VM_hook_script_stable
2798
+ ( id
2799
+ , Xenops_hooks. VM_pre_destroy
2800
+ , Xenops_hooks. reason__suspend
2801
+ , new_src_id
2802
+ )
2803
+ ]
2804
+ @ atomics_of_operation (VM_shutdown (new_src_id, None ))
2805
+ @ [
2818
2806
VM_hook_script_stable
2819
2807
( id
2820
2808
, Xenops_hooks. VM_post_destroy
@@ -2823,10 +2811,8 @@ and perform_exn ?result (op : operation) (t : Xenops_task.task_handle) : unit =
2823
2811
)
2824
2812
; VM_remove new_src_id
2825
2813
]
2826
- in
2827
- perform_atomics atomics t
2828
2814
in
2829
- cleanup_src_vm ()
2815
+ perform_atomics atomics t
2830
2816
| VM_receive_memory
2831
2817
{
2832
2818
vmr_id= id
0 commit comments