[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 02/29] tools/[lib]xl: Correct use of init/dispose for libxl_domain_restore_params
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx> CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- tools/libxl/libxl.h | 9 +++++++-- tools/libxl/xl_cmdimpl.c | 6 ++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h index dab3a67..5136d02 100644 --- a/tools/libxl/libxl.h +++ b/tools/libxl/libxl.h @@ -847,10 +847,15 @@ int static inline libxl_domain_create_restore_0x040200( LIBXL_EXTERNAL_CALLERS_ONLY { libxl_domain_restore_params params; - params.checkpointed_stream = 0; + int ret; - return libxl_domain_create_restore( + libxl_domain_restore_params_init(¶ms); + + ret = libxl_domain_create_restore( ctx, d_config, domid, restore_fd, ¶ms, ao_how, aop_console_how); + + libxl_domain_restore_params_dispose(¶ms); + return ret; } #define libxl_domain_create_restore libxl_domain_create_restore_0x040200 diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 8a38077..26492fc 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -2246,11 +2246,17 @@ start: if ( restoring ) { libxl_domain_restore_params params; + + libxl_domain_restore_params_init(¶ms); + params.checkpointed_stream = dom_info->checkpointed_stream; ret = libxl_domain_create_restore(ctx, &d_config, &domid, restore_fd, ¶ms, 0, autoconnect_console_how); + + libxl_domain_restore_params_dispose(¶ms); + /* * On subsequent reboot etc we should create the domain, not * restore/migrate-receive it again. -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |