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
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.