Home
last modified time | relevance | path

Searched refs:qemu_get_aio_context (Results 1 – 25 of 72) sorted by relevance

123

/openbmc/qemu/tests/unit/
H A Dtest-bdrv-graph-mod.c132 BlockBackend *root = blk_new(qemu_get_aio_context(), in test_update_perm_tree()
145 aio_context_acquire(qemu_get_aio_context()); in test_update_perm_tree()
148 aio_context_release(qemu_get_aio_context()); in test_update_perm_tree()
200 BlockBackend *root = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in test_should_update_child()
214 aio_context_acquire(qemu_get_aio_context()); in test_should_update_child()
216 aio_context_release(qemu_get_aio_context()); in test_should_update_child()
443 aio_context_acquire(qemu_get_aio_context()); in test_append_greedy_filter()
445 aio_context_release(qemu_get_aio_context()); in test_append_greedy_filter()
H A Dtest-block-iothread.c569 aio_poll(qemu_get_aio_context(), false); in test_attach_blockjob()
576 aio_poll(qemu_get_aio_context(), false); in test_attach_blockjob()
585 aio_poll(qemu_get_aio_context(), false); in test_attach_blockjob()
592 aio_poll(qemu_get_aio_context(), false); in test_attach_blockjob()
656 main_ctx = qemu_get_aio_context(); in test_propagate_basic()
734 main_ctx = qemu_get_aio_context(); in test_propagate_diamond()
755 AioContext *main_ctx = qemu_get_aio_context(); in test_propagate_mirror()
796 blk = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in test_propagate_mirror()
834 AioContext *main_ctx = qemu_get_aio_context(); in test_attach_second_node()
871 AioContext *main_ctx = qemu_get_aio_context(); in test_attach_preserve_blk_ctx()
[all …]
H A Dtest-bdrv-drain.c152 aio_poll(qemu_get_aio_context(), true); in call_in_coroutine()
794 ctx = qemu_get_aio_context(); in test_blockjob_common_drain_node()
833 aio_poll(qemu_get_aio_context(), false); in test_blockjob_common_drain_node()
867 aio_poll(qemu_get_aio_context(), false); in test_blockjob_common_drain_node()
900 aio_poll(qemu_get_aio_context(), false); in test_blockjob_common_drain_node()
1154 aio_poll(qemu_get_aio_context(), true); in do_test_delete_by_drain()
1404 aio_context_acquire(qemu_get_aio_context()); in test_append_to_drained()
1406 aio_context_release(qemu_get_aio_context()); in test_append_to_drained()
1595 aio_poll(qemu_get_aio_context(), false); in test_blockjob_commit_by_drained_end()
1753 aio_poll(qemu_get_aio_context(), false); in test_drop_intermediate_poll()
[all …]
H A Dtest-block-backend.c41 BlockBackend *blk = blk_new(qemu_get_aio_context(), in test_drain_aio_error()
58 BlockBackend *blk = blk_new(qemu_get_aio_context(), in test_drain_all_aio_error()
H A Dtest-blockjob-txn.c126 aio_poll(qemu_get_aio_context(), true); in test_single_job()
177 aio_poll(qemu_get_aio_context(), true); in test_pair_jobs()
237 aio_poll(qemu_get_aio_context(), true); in test_pair_jobs_fail_cancel_race()
H A Dtest-blockjob.c71 BlockBackend *blk = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in create_blk()
353 aio_poll(qemu_get_aio_context(), true); in test_cancel_pending()
356 aio_poll(qemu_get_aio_context(), true); in test_cancel_pending()
380 aio_poll(qemu_get_aio_context(), true); in test_cancel_concluded()
383 aio_poll(qemu_get_aio_context(), true); in test_cancel_concluded()
H A Dtest-throttle.c745 blk1 = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in test_groups()
746 blk2 = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in test_groups()
747 blk3 = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in test_groups()
807 ctx = qemu_get_aio_context(); in main()
/openbmc/qemu/include/block/
H A Daio-wait.h96 qemu_get_aio_context()); \
101 aio_poll(qemu_get_aio_context(), true); \
153 if (ctx == qemu_get_aio_context()) { in in_aio_context_home_thread()
/openbmc/qemu/util/
H A Daio-wait.c54 aio_bh_schedule_oneshot(qemu_get_aio_context(), dummy_bh_cb, NULL); in aio_wait_kick()
82 assert(qemu_get_current_aio_context() == qemu_get_aio_context()); in aio_wait_bh_oneshot()
/openbmc/qemu/block/
H A Dgraph-lock.c123 if (ctx != qemu_get_aio_context()) { in bdrv_graph_wrlock()
173 if (ctx && ctx != qemu_get_aio_context()) { in bdrv_graph_wrunlock_ctx()
199 aio_bh_poll(qemu_get_aio_context()); in bdrv_graph_wrunlock_ctx()
H A Dcreate.c97 qemu_get_aio_context(), JOB_DEFAULT | JOB_MANUAL_DISMISS, in qmp_blockdev_create()
H A Dqapi-sysemu.c377 aio_context_acquire(qemu_get_aio_context()); in qmp_blockdev_change_medium()
379 aio_context_release(qemu_get_aio_context()); in qmp_blockdev_change_medium()
H A Dreplication.c398 if (ctx != qemu_get_aio_context()) { in reopen_backing_file()
402 if (ctx != qemu_get_aio_context()) { in reopen_backing_file()
/openbmc/qemu/stubs/
H A Diothread-lock-block.c6 return qemu_get_current_aio_context() == qemu_get_aio_context(); in qemu_in_main_thread()
/openbmc/qemu/hw/block/dataplane/
H A Dvirtio-blk.c95 s->ctx = qemu_get_aio_context(); in virtio_blk_data_plane_create()
326 blk_set_aio_context(s->conf->conf.blk, qemu_get_aio_context(), NULL); in virtio_blk_data_plane_stop()
H A Dxen-block.c635 dataplane->ctx = qemu_get_aio_context(); in xen_block_dataplane_create()
708 blk_set_aio_context(dataplane->blk, qemu_get_aio_context(), &error_abort); in xen_block_dataplane_stop()
/openbmc/qemu/block/export/
H A Dexport.c242 aio_bh_schedule_oneshot(qemu_get_aio_context(), blk_exp_delete_bh, in blk_exp_unref()
306 assert(in_aio_context_home_thread(qemu_get_aio_context())); in blk_exp_close_all_type()
/openbmc/qemu/include/qemu/
H A Dmain-loop.h97 AioContext *qemu_get_aio_context(void);
/openbmc/qemu/fsdev/
H A Dqemu-fsdev-throttle.c86 qemu_get_aio_context(), in fsdev_throttle_init()
/openbmc/qemu/backends/tpm/
H A Dtpm_backend.c55 aio_poll(qemu_get_aio_context(), true); in tpm_backend_finish_sync()
/openbmc/qemu/
H A Dblock.c425 bs->aio_context = qemu_get_aio_context(); in bdrv_new()
3977 AioContext *ctx = qemu_get_aio_context(); in bdrv_open_inherit()
4702 if (ctx != qemu_get_aio_context()) { in bdrv_reopen()
4707 if (ctx != qemu_get_aio_context()) { in bdrv_reopen()
5701 aio_context_acquire(qemu_get_aio_context()); in bdrv_insert_node()
5704 aio_context_release(qemu_get_aio_context()); in bdrv_insert_node()
7401 aio_context_acquire(qemu_get_aio_context()); in bdrv_img_create()
7598 if (ctx != qemu_get_aio_context()) { in bdrv_co_lock()
7608 if (ctx != qemu_get_aio_context()) { in bdrv_co_unlock()
7873 if (qemu_get_aio_context() != ctx) { in bdrv_try_change_aio_context()
[all …]
H A Dblockdev.c587 blk = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in blockdev_init()
680 aio_context_acquire(qemu_get_aio_context()); in bds_tree_init()
682 aio_context_release(qemu_get_aio_context()); in bds_tree_init()
1513 aio_context_acquire(qemu_get_aio_context()); in external_snapshot_action()
1516 aio_context_release(qemu_get_aio_context()); in external_snapshot_action()
1784 aio_context_acquire(qemu_get_aio_context()); in drive_backup_action()
1786 aio_context_release(qemu_get_aio_context()); in drive_backup_action()
3161 aio_context_acquire(qemu_get_aio_context()); in qmp_drive_mirror()
3163 aio_context_release(qemu_get_aio_context()); in qmp_drive_mirror()
3756 new_context = qemu_get_aio_context(); in qmp_x_blockdev_set_iothread()
H A Dblockjob.c246 if (job->job.aio_context != qemu_get_aio_context()) { in block_job_add_bdrv()
255 if (job->job.aio_context != qemu_get_aio_context()) { in block_job_add_bdrv()
/openbmc/qemu/hw/scsi/
H A Dvirtio-scsi-dataplane.c47 s->ctx = qemu_get_aio_context(); in virtio_scsi_dataplane_setup()
/openbmc/qemu/qapi/
H A Dqmp-dispatch.c215 aio_co_schedule(qemu_get_aio_context(), qemu_coroutine_self()); in qmp_dispatch()

123