diff options
author | Ian Jackson <ian.jackson@eu.citrix.com> | 2012-08-03 09:54:13 +0100 |
---|---|---|
committer | Ian Jackson <ian.jackson@eu.citrix.com> | 2012-08-03 09:54:13 +0100 |
commit | 850bec6634e65ceb878d9d53a4bd6a0841d2b6a2 (patch) | |
tree | 2e6e0fbec206cc73a1fa8fcc95143f113a1a2d68 /tools/libxl | |
parent | 5f672c62102e0136de72fa670d0c2b1b34311dc9 (diff) | |
download | xen-850bec6634e65ceb878d9d53a4bd6a0841d2b6a2.tar.gz xen-850bec6634e65ceb878d9d53a4bd6a0841d2b6a2.tar.bz2 xen-850bec6634e65ceb878d9d53a4bd6a0841d2b6a2.zip |
libxl: remus: mark TODOs more clearly
Change the TODOs in the remus code to "REMUS TODO" which will make
them easier to grep for later. AIUI all of these are essential for
use of remus in production.
Also add a new TODO and a new assert, to check rc on entry to
remus_checkpoint_dm_saved.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl')
-rw-r--r-- | tools/libxl/libxl_dom.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index d749983ce7..06d5e4f249 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -1110,7 +1110,7 @@ int libxl__toolstack_save(uint32_t domid, uint8_t **buf, static int libxl__remus_domain_suspend_callback(void *data) { - /* TODO: Issue disk and network checkpoint reqs. */ + /* REMUS TODO: Issue disk and network checkpoint reqs. */ return libxl__domain_suspend_common_callback(data); } @@ -1124,7 +1124,7 @@ static int libxl__remus_domain_resume_callback(void *data) if (libxl_domain_resume(CTX, dss->domid, /* Fast Suspend */1)) return 0; - /* TODO: Deal with disk. Start a new network output buffer */ + /* REMUS TODO: Deal with disk. Start a new network output buffer */ return 1; } @@ -1151,8 +1151,9 @@ static void libxl__remus_domain_checkpoint_callback(void *data) static void remus_checkpoint_dm_saved(libxl__egc *egc, libxl__domain_suspend_state *dss, int rc) { - /* TODO: Wait for disk and memory ack, release network buffer */ - /* TODO: make this asynchronous */ + /* REMUS TODO: Wait for disk and memory ack, release network buffer */ + /* REMUS TODO: make this asynchronous */ + assert(!rc); /* REMUS TODO handle this error properly */ usleep(dss->interval * 1000); libxl__xc_domain_saverestore_async_callback_done(egc, &dss->shs, 1); } |