/openbmc/qemu/tests/unit/ |
H A D | test-bdrv-graph-mod.c | 132 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 D | test-block-iothread.c | 569 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 D | test-bdrv-drain.c | 152 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 D | test-block-backend.c | 41 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 D | test-blockjob-txn.c | 126 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 D | test-blockjob.c | 71 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 D | test-throttle.c | 745 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 D | aio-wait.h | 96 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 D | aio-wait.c | 54 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 D | graph-lock.c | 123 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 D | create.c | 97 qemu_get_aio_context(), JOB_DEFAULT | JOB_MANUAL_DISMISS, in qmp_blockdev_create()
|
H A D | qapi-sysemu.c | 377 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 D | replication.c | 398 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 D | iothread-lock-block.c | 6 return qemu_get_current_aio_context() == qemu_get_aio_context(); in qemu_in_main_thread()
|
/openbmc/qemu/hw/block/dataplane/ |
H A D | virtio-blk.c | 95 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 D | xen-block.c | 635 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 D | export.c | 242 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 D | main-loop.h | 97 AioContext *qemu_get_aio_context(void);
|
/openbmc/qemu/fsdev/ |
H A D | qemu-fsdev-throttle.c | 86 qemu_get_aio_context(), in fsdev_throttle_init()
|
/openbmc/qemu/backends/tpm/ |
H A D | tpm_backend.c | 55 aio_poll(qemu_get_aio_context(), true); in tpm_backend_finish_sync()
|
/openbmc/qemu/ |
H A D | block.c | 425 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 D | blockdev.c | 587 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 D | blockjob.c | 246 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 D | virtio-scsi-dataplane.c | 47 s->ctx = qemu_get_aio_context(); in virtio_scsi_dataplane_setup()
|
/openbmc/qemu/qapi/ |
H A D | qmp-dispatch.c | 215 aio_co_schedule(qemu_get_aio_context(), qemu_coroutine_self()); in qmp_dispatch()
|