]> xenbits.xensource.com Git - people/royger/xen.git/commit
libxl/save: Refactor libxl__domain_suspend_state
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 15 Jul 2015 07:45:36 +0000 (15:45 +0800)
committerWei Liu <wei.liu2@citrix.com>
Fri, 26 Feb 2016 14:27:12 +0000 (14:27 +0000)
commitd5c693d9bb3f77342b640d6744858bf6809473cc
tree94c537aa2ec3a983aca976331590440bc36161a7
parentae6aa860b7839a5ac631b7ed1fbaa500f4695659
libxl/save: Refactor libxl__domain_suspend_state

Currently struct libxl__domain_suspend_state contains 2 type of states,
one is save state, another is suspend state. This patch separates those
two out.
The motivation of this is that COLO will need to do suspend/resume
continuously, we need a more common suspend state.

After this change, dss stands for libxl__domain_save_state,
dsps stands for libxl__domain_suspend_state.

Also introduce libxl__domain_suspend_init to initialise the
libxl__domain_suspend_state.

Signed-off-by: Yang Hongyang <hongyang.yang@easystack.cn>
Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by:Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_create.c
tools/libxl/libxl_dom_save.c
tools/libxl/libxl_dom_suspend.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_netbuffer.c
tools/libxl/libxl_remus.c
tools/libxl/libxl_save_callout.c
tools/libxl/libxl_stream_write.c