Lines Matching refs:dss
75 libxl__domain_save_state *dss = CONTAINER_OF(rs, *dss, rs); in libxl__remus_setup() local
78 libxl__checkpoint_devices_state *const cds = &dss->cds; in libxl__remus_setup()
79 const libxl_domain_remus_info *const info = dss->remus; in libxl__remus_setup()
81 &dss->sws.shs.callbacks.save.a; in libxl__remus_setup()
83 STATE_AO_GC(dss->ao); in libxl__remus_setup()
87 LOGD(ERROR, dss->domid, in libxl__remus_setup()
98 cds->domid = dss->domid; in libxl__remus_setup()
105 LOGD(ERROR, dss->domid, in libxl__remus_setup()
110 dss->sws.checkpoint_callback = remus_checkpoint_stream_written; in libxl__remus_setup()
120 dss->callback(egc, dss, ERROR_FAIL); in libxl__remus_setup()
126 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_setup_done() local
127 STATE_AO_GC(dss->ao); in remus_setup_done()
130 libxl__domain_save(egc, dss); in remus_setup_done()
134 LOGD(ERROR, dss->domid, "Remus: failed to setup device, rc %d", rc); in remus_setup_done()
142 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_setup_failed() local
143 STATE_AO_GC(dss->ao); in remus_setup_failed()
146 LOGD(ERROR, dss->domid, in remus_setup_failed()
151 dss->callback(egc, dss, rc); in remus_setup_failed()
161 libxl__domain_save_state *dss = CONTAINER_OF(rs, *dss, rs); in libxl__remus_teardown() local
164 libxl__checkpoint_devices_state *const cds = &dss->cds; in libxl__remus_teardown()
168 LOGD(WARN, dss->domid, "Remus: Domain suspend terminated with rc %d," in libxl__remus_teardown()
178 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_teardown_done() local
179 STATE_AO_GC(dss->ao); in remus_teardown_done()
182 LOGD(ERROR, dss->domid, "Remus: failed to teardown device," in remus_teardown_done()
187 dss->callback(egc, dss, rc); in remus_teardown_done()
205 libxl__domain_save_state *dss = shs->caller_state; in libxl__remus_domain_suspend_callback() local
206 libxl__domain_suspend_state *dsps = &dss->dsps; in libxl__remus_domain_suspend_callback()
215 libxl__domain_save_state *dss = CONTAINER_OF(dsps, *dss, dsps); in remus_domain_suspend_callback_common_done() local
220 libxl__checkpoint_devices_state *const cds = &dss->cds; in remus_domain_suspend_callback_common_done()
226 dss->rc = rc; in remus_domain_suspend_callback_common_done()
227 libxl__xc_domain_saverestore_async_callback_done(egc, &dss->sws.shs, !rc); in remus_domain_suspend_callback_common_done()
234 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_devices_postsuspend_cb() local
243 dss->rc = rc; in remus_devices_postsuspend_cb()
244 libxl__xc_domain_saverestore_async_callback_done(egc, &dss->sws.shs, !rc); in remus_devices_postsuspend_cb()
251 libxl__domain_save_state *dss = shs->caller_state; in libxl__remus_domain_resume_callback() local
252 STATE_AO_GC(dss->ao); in libxl__remus_domain_resume_callback()
254 libxl__checkpoint_devices_state *const cds = &dss->cds; in libxl__remus_domain_resume_callback()
263 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_devices_preresume_cb() local
264 STATE_AO_GC(dss->ao); in remus_devices_preresume_cb()
270 rc = libxl__domain_resume(gc, dss->domid, /* Fast Suspend */1); in remus_devices_preresume_cb()
278 dss->rc = rc; in remus_devices_preresume_cb()
279 libxl__xc_domain_saverestore_async_callback_done(egc, &dss->sws.shs, !rc); in remus_devices_preresume_cb()
294 libxl__domain_save_state *dss = shs->caller_state; in libxl__remus_domain_save_checkpoint_callback() local
296 STATE_AO_GC(dss->ao); in libxl__remus_domain_save_checkpoint_callback()
298 libxl__stream_write_start_checkpoint(egc, &dss->sws); in libxl__remus_domain_save_checkpoint_callback()
304 libxl__domain_save_state *dss = CONTAINER_OF(sws, *dss, sws); in remus_checkpoint_stream_written() local
307 libxl__checkpoint_devices_state *const cds = &dss->cds; in remus_checkpoint_stream_written()
309 STATE_AO_GC(dss->ao); in remus_checkpoint_stream_written()
312 LOGD(ERROR, dss->domid, "Failed to save device model." in remus_checkpoint_stream_written()
323 libxl__xc_domain_saverestore_async_callback_done(egc, &dss->sws.shs, 0); in remus_checkpoint_stream_written()
330 libxl__domain_save_state *dss = CONTAINER_OF(cds, *dss, cds); in remus_devices_commit_cb() local
332 STATE_AO_GC(dss->ao); in remus_devices_commit_cb()
335 LOGD(ERROR, dss->domid, "Failed to do device commit op." in remus_devices_commit_cb()
348 rc = libxl__ev_time_register_rel(ao, &dss->rs.checkpoint_timeout, in remus_devices_commit_cb()
350 dss->rs.interval); in remus_devices_commit_cb()
358 libxl__xc_domain_saverestore_async_callback_done(egc, &dss->sws.shs, 0); in remus_devices_commit_cb()
365 libxl__domain_save_state *dss = in remus_next_checkpoint() local
366 CONTAINER_OF(ev, *dss, rs.checkpoint_timeout); in remus_next_checkpoint()
368 STATE_AO_GC(dss->ao); in remus_next_checkpoint()
380 dss->rc = rc; in remus_next_checkpoint()
382 libxl__xc_domain_saverestore_async_callback_done(egc, &dss->sws.shs, !rc); in remus_next_checkpoint()