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_types.idl | |
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_types.idl')
-rw-r--r-- | tools/libxl/libxl_types.idl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl index 551e367107..a21bd85fa8 100644 --- a/tools/libxl/libxl_types.idl +++ b/tools/libxl/libxl_types.idl @@ -454,6 +454,12 @@ libxl_sched_sedf_domain = Struct("sched_sedf_domain", [ ("weight", integer), ]) +libxl_domain_remus_info = Struct("domain_remus_info",[ + ("interval", integer), + ("blackhole", bool), + ("compression", bool), + ]) + libxl_event_type = Enumeration("event_type", [ (1, "DOMAIN_SHUTDOWN"), (2, "DOMAIN_DEATH"), |