diff options
author | Shriram Rajagopalan <rshriram@cs.ubc.ca> | 2012-05-18 11:00:44 +0100 |
---|---|---|
committer | Shriram Rajagopalan <rshriram@cs.ubc.ca> | 2012-05-18 11:00:44 +0100 |
commit | d473b016fb7ab10d46fcfb37f990037ac0368a35 (patch) | |
tree | b866f568950dfc367a1e2121eab72a78c6304505 /tools/libxl/libxl.h | |
parent | bea0ff6e774d171bf6acb451f75dc194f4002782 (diff) | |
download | xen-d473b016fb7ab10d46fcfb37f990037ac0368a35.tar.gz xen-d473b016fb7ab10d46fcfb37f990037ac0368a35.tar.bz2 xen-d473b016fb7ab10d46fcfb37f990037ac0368a35.zip |
libxl: Remus - suspend/postflush/commit callbacks
* Add libxl callback functions for Remus checkpoint suspend, postflush
(aka resume) and checkpoint commit callbacks.
* suspend callback is a stub that just bounces off
libxl__domain_suspend_common_callback - which suspends the domain and
saves the devices model state to a file.
* resume callback currently just resumes the domain (and the device model).
* commit callback just writes out the saved device model state to the
network and sleeps for the checkpoint interval.
* Introduce a new public API, libxl_domain_remus_start (currently a stub)
that sets up the network and disk buffer and initiates continuous
checkpointing.
* Future patches will augment these callbacks/functions with more functionalities
like issuing network buffer plug/unplug commands, disk checkpoint commands, etc.
Signed-off-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl.h')
-rw-r--r-- | tools/libxl/libxl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h index 10bd053226..316d290579 100644 --- a/tools/libxl/libxl.h +++ b/tools/libxl/libxl.h @@ -525,6 +525,8 @@ int libxl_domain_create_restore(libxl_ctx *ctx, libxl_domain_config *d_config, void libxl_domain_config_init(libxl_domain_config *d_config); void libxl_domain_config_dispose(libxl_domain_config *d_config); +int libxl_domain_remus_start(libxl_ctx *ctx, libxl_domain_remus_info *info, + uint32_t domid, int send_fd, int recv_fd); int libxl_domain_suspend(libxl_ctx *ctx, libxl_domain_suspend_info *info, uint32_t domid, int fd); |