Changlong Xie writes ("[PATCH v13 12/26] secondary vm suspend/resume/checkpoint
code"):
> From: Wen Congyang <[email protected]>
>
> Secondary vm is running in colo mode. So we will do
> the following things again and again:
> 1. Resume secondary vm
> a. Send CHECKPOINT_SVM_READY to master.
> b. If it is not the first resume, call
> libxl__checkpoint_devices_preresume().
> c. If it is the first resume(resume right after live migration),
> - call libxl__xc_domain_restore_done() to build the secondary vm.
> - enable secondary vm's logdirty.
> - call libxl__domain_resume() to resume secondary vm.
> - call libxl__checkpoint_devices_setup() to setup checkpoint devices.
> d. Send CHECKPOINT_SVM_RESUMED to master.
> 2. Wait a new checkpoint
> a. Call libxl__checkpoint_devices_commit().
> b. Read CHECKPOINT_NEW from master.
> 3. Suspend secondary vm
> a. Suspend secondary vm.
> b. Call libxl__checkpoint_devices_postsuspend().
> c. Send CHECKPOINT_SVM_SUSPENDED to master.
> 4. Checkpoint
> a. Read emulator xenstore data and emulator context
> b. REC_TYPE_CHECKPOINT_END
>
> Signed-off-by: Wen Congyang <[email protected]>
> Signed-off-by: Yang Hongyang <[email protected]>
> Signed-off-by: Changlong Xie <[email protected]>
Acked-by: Ian Jackson <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel