printf_info(-1, &d_config, &d_config.dm_info);
start:
- domid = 0;
+ domid = -1;
rc = acquire_lock();
if (rc < 0)
goto error_out;
}
- ret = libxl_userdata_store(&ctx, domid, "xl",
- config_data, config_len);
- if (ret) {
- perror("cannot save config file");
- ret = ERROR_FAIL;
- goto error_out;
- }
-
if ( dom_info->console_autoconnect ) {
cb = autoconnect_console;
}else{
if ( ret )
goto error_out;
+ ret = libxl_userdata_store(&ctx, domid, "xl",
+ config_data, config_len);
+ if (ret) {
+ perror("cannot save config file");
+ ret = ERROR_FAIL;
+ goto error_out;
+ }
+
release_lock();
if (!paused)