diff options
author | Shriram Rajagopalan <rshriram@cs.ubc.ca> | 2012-05-18 11:00:41 +0100 |
---|---|---|
committer | Shriram Rajagopalan <rshriram@cs.ubc.ca> | 2012-05-18 11:00:41 +0100 |
commit | edb3f71c59a5657ce10c6e7bdf3de82371ffa47b (patch) | |
tree | 57488c902ada9fdde557588bbf337a43d8ec4255 /tools/libxl/libxl.h | |
parent | 8aa1a2601ef695f08869f5430561122512446670 (diff) | |
download | xen-edb3f71c59a5657ce10c6e7bdf3de82371ffa47b.tar.gz xen-edb3f71c59a5657ce10c6e7bdf3de82371ffa47b.tar.bz2 xen-edb3f71c59a5657ce10c6e7bdf3de82371ffa47b.zip |
libxl: support suspend_cancel in domain_resume
Add an extra parameter to libxl_domain_resume indicating
if the caller wishes to use the SUSPEND_CANCEL style
resume instead of the normal resume.
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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h index c86d8e7602..10bd053226 100644 --- a/tools/libxl/libxl.h +++ b/tools/libxl/libxl.h @@ -527,7 +527,12 @@ void libxl_domain_config_init(libxl_domain_config *d_config); void libxl_domain_config_dispose(libxl_domain_config *d_config); int libxl_domain_suspend(libxl_ctx *ctx, libxl_domain_suspend_info *info, uint32_t domid, int fd); -int libxl_domain_resume(libxl_ctx *ctx, uint32_t domid); + +/* @param suspend_cancel [from xenctrl.h:xc_domain_resume( @param fast )] + * If this parameter is true, use co-operative resume. The guest + * must support this. + */ +int libxl_domain_resume(libxl_ctx *ctx, uint32_t domid, int suspend_cancel); int libxl_domain_shutdown(libxl_ctx *ctx, uint32_t domid); int libxl_domain_reboot(libxl_ctx *ctx, uint32_t domid); int libxl_domain_destroy(libxl_ctx *ctx, uint32_t domid); |