Lines Matching refs:dcs
53 libxl__domain_create_state *dcs = CONTAINER_OF(crs, *dcs, crs); in colo_enable_logdirty() local
82 libxl__domain_create_state *dcs = CONTAINER_OF(crs, *dcs, crs); in colo_disable_logdirty() local
108 libxl__domain_create_state *dcs = CONTAINER_OF(crcs->crs, *dcs, crs); in colo_resume_vm() local
135 libxl__xc_domain_restore_done(egc, dcs, 0, 0, 0); in colo_resume_vm()
172 libxl__domain_create_state *dcs,
221 libxl__domain_create_state *dcs = CONTAINER_OF(crs, *dcs, crs); in libxl__colo_restore_setup() local
227 &dcs->srs.shs.callbacks.restore.a; in libxl__colo_restore_setup()
237 if (dcs->colo_proxy_script) in libxl__colo_restore_setup()
238 crs->colo_proxy_script = libxl__strdup(gc, dcs->colo_proxy_script); in libxl__colo_restore_setup()
260 crs->saved_cb = dcs->callback; in libxl__colo_restore_setup()
261 dcs->callback = libxl__colo_domain_create_cb; in libxl__colo_restore_setup()
272 dcs->cds.concrete_data = crs; in libxl__colo_restore_setup()
284 libxl__domain_create_state *dcs, in libxl__colo_domain_create_cb() argument
287 libxl__colo_restore_checkpoint_state *crcs = dcs->crs.crcs; in libxl__colo_domain_create_cb()
310 libxl__domain_create_state *dcs = dcs_void; in libxl__colo_restore_teardown() local
311 libxl__colo_restore_checkpoint_state *crcs = dcs->crs.crcs; in libxl__colo_restore_teardown()
315 libxl__colo_restore_state *const crs = &dcs->crs; in libxl__colo_restore_teardown()
326 dcs->srs.completion_callback = NULL; in libxl__colo_restore_teardown()
328 libxl__xc_domain_restore_done(egc, dcs, ret, retval, errnoval); in libxl__colo_restore_teardown()
337 colo_restore_teardown_devices_done(egc, &dcs->cds, 0); in libxl__colo_restore_teardown()
341 dcs->cds.callback = colo_restore_teardown_devices_done; in libxl__colo_restore_teardown()
342 libxl__checkpoint_devices_teardown(egc, &dcs->cds); in libxl__colo_restore_teardown()
350 libxl__domain_create_state *dcs = CONTAINER_OF(crs, *dcs, crs); in colo_restore_teardown_devices_done() local
410 libxl__domain_create_state *dcs = CONTAINER_OF(crcs->crs, *dcs, crs); in do_failover_done() local
451 libxl__domain_create_state *dcs = CONTAINER_OF(crs, *dcs, crs); in libxl__colo_restore_teardown_done() local
467 dcs->callback = crs->saved_cb; in libxl__colo_restore_teardown_done()
471 dcs->callback(egc, dcs, rc, crs->domid); in libxl__colo_restore_teardown_done()
493 libxl__domain_create_state *dcs = CONTAINER_OF(srs, *dcs, srs); in libxl__colo_restore_domain_checkpoint_callback() local
494 libxl__colo_restore_checkpoint_state *crcs = dcs->crs.crcs; in libxl__colo_restore_domain_checkpoint_callback()
497 dcs->srs.checkpoint_callback = colo_common_read_stream_done; in libxl__colo_restore_domain_checkpoint_callback()
498 libxl__stream_read_start_checkpoint(shs->egc, &dcs->srs); in libxl__colo_restore_domain_checkpoint_callback()
553 libxl__domain_create_state *dcs = CONTAINER_OF(srs, *dcs, srs); in libxl__colo_restore_domain_resume_callback() local
554 libxl__colo_restore_checkpoint_state *crcs = dcs->crs.crcs; in libxl__colo_restore_domain_resume_callback()
576 libxl__domain_create_state *dcs = CONTAINER_OF(crcs->crs, *dcs, crs); in colo_send_svm_ready_done() local
579 libxl__checkpoint_devices_state *cds = &dcs->cds; in colo_send_svm_ready_done()
596 libxl__domain_create_state *dcs = CONTAINER_OF(crs, *dcs, crs); in colo_restore_preresume_cb() local
600 libxl__save_helper_state *const shs = &dcs->srs.shs; in colo_restore_preresume_cb()
639 libxl__domain_create_state *dcs = CONTAINER_OF(crcs->crs, *dcs, crs); in colo_resume_vm_done() local
644 libxl__save_helper_state *const shs = &dcs->srs.shs; in colo_resume_vm_done()
659 dcs->callback = crs->saved_cb; in colo_resume_vm_done()
662 dcs->srs.completion_callback = NULL; in colo_resume_vm_done()
715 libxl__domain_create_state *dcs = CONTAINER_OF(crcs->crs, *dcs, crs); in colo_reenable_logdirty() local
719 libxl__save_helper_state *const shs = &dcs->srs.shs; in colo_reenable_logdirty()
742 libxl__domain_create_state *dcs = CONTAINER_OF(crcs->crs, *dcs, crs); in colo_reenable_logdirty_done() local
745 libxl__save_helper_state *const shs = &dcs->srs.shs; in colo_reenable_logdirty_done()
769 libxl__domain_create_state *dcs = CONTAINER_OF(crs, *dcs, crs); in colo_setup_checkpoint_devices() local
773 libxl__checkpoint_devices_state *cds = &dcs->cds; in colo_setup_checkpoint_devices()
774 libxl__save_helper_state *const shs = &dcs->srs.shs; in colo_setup_checkpoint_devices()
814 libxl__domain_create_state *dcs = CONTAINER_OF(crs, *dcs, crs); in colo_restore_setup_cds_done() local
818 libxl__save_helper_state *const shs = &dcs->srs.shs; in colo_restore_setup_cds_done()
846 libxl__domain_create_state *dcs = CONTAINER_OF(crcs->crs, *dcs, crs); in colo_unpause_svm() local
851 libxl__save_helper_state *const shs = &dcs->srs.shs; in colo_unpause_svm()
883 libxl__domain_create_state *dcs = CONTAINER_OF(srs, *dcs, srs); in libxl__colo_restore_domain_wait_checkpoint_callback() local
886 libxl__checkpoint_devices_state *cds = &dcs->cds; in libxl__colo_restore_domain_wait_checkpoint_callback()
897 libxl__domain_create_state *dcs = CONTAINER_OF(crs, *dcs, crs); in colo_restore_commit_cb() local
908 dcs->srs.checkpoint_callback = colo_common_read_stream_done; in colo_restore_commit_cb()
909 libxl__stream_read_checkpoint_state(egc, &dcs->srs); in colo_restore_commit_cb()
914 libxl__xc_domain_saverestore_async_callback_done(egc, &dcs->srs.shs, 0); in colo_restore_commit_cb()
921 libxl__domain_create_state *dcs = CONTAINER_OF(crcs->crs, *dcs, crs); in colo_stream_read_done() local
934 libxl__xc_domain_saverestore_async_callback_done(egc, &dcs->srs.shs, ok); in colo_stream_read_done()
955 libxl__domain_create_state *dcs = CONTAINER_OF(srs, *dcs, srs); in libxl__colo_restore_domain_suspend_callback() local
956 libxl__colo_restore_checkpoint_state *crcs = dcs->crs.crcs; in libxl__colo_restore_domain_suspend_callback()
958 STATE_AO_GC(dcs->ao); in libxl__colo_restore_domain_suspend_callback()
975 libxl__domain_create_state *dcs = CONTAINER_OF(crs, *dcs, crs); in colo_suspend_vm_done() local
978 libxl__checkpoint_devices_state *cds = &dcs->cds; in colo_suspend_vm_done()
1000 libxl__xc_domain_saverestore_async_callback_done(egc, &dcs->srs.shs, 0); in colo_suspend_vm_done()
1008 libxl__domain_create_state *dcs = CONTAINER_OF(crs, *dcs, crs); in colo_restore_postsuspend_cb() local
1026 libxl__xc_domain_saverestore_async_callback_done(egc, &dcs->srs.shs, !rc); in colo_restore_postsuspend_cb()
1037 libxl__domain_create_state *dcs = CONTAINER_OF(crcs->crs, *dcs, crs); in colo_common_write_stream_done() local
1060 libxl__xc_domain_saverestore_async_callback_done(egc, &dcs->srs.shs, ok); in colo_common_write_stream_done()
1067 libxl__domain_create_state *dcs = CONTAINER_OF(stream, *dcs, srs); in colo_common_read_stream_done() local
1068 libxl__colo_restore_checkpoint_state *crcs = dcs->crs.crcs; in colo_common_read_stream_done()
1092 libxl__xc_domain_saverestore_async_callback_done(egc, &dcs->srs.shs, ok); in colo_common_read_stream_done()