Home
last modified time | relevance | path

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

123

/openbmc/qemu/tests/unit/
H A Dtest-block-iothread.c476 blk = blk_new(qemu_get_aio_context(), BLK_PERM_ALL, BLK_PERM_ALL); in test_sync_op()
492 blk_set_aio_context(blk, qemu_get_aio_context(), &error_abort); in test_sync_op()
506 g_assert(qemu_get_current_aio_context() == qemu_get_aio_context()); in test_job_prepare()
557 blk = blk_new(qemu_get_aio_context(), BLK_PERM_ALL, BLK_PERM_ALL); in test_attach_blockjob()
567 aio_poll(qemu_get_aio_context(), false); in test_attach_blockjob()
574 aio_poll(qemu_get_aio_context(), false); in test_attach_blockjob()
577 blk_set_aio_context(blk, qemu_get_aio_context(), &error_abort); in test_attach_blockjob()
581 aio_poll(qemu_get_aio_context(), false); in test_attach_blockjob()
588 aio_poll(qemu_get_aio_context(), false); in test_attach_blockjob()
594 blk_set_aio_context(blk, qemu_get_aio_context(), &error_abort); in test_attach_blockjob()
[all …]
H A Dtest-bdrv-drain.c152 aio_poll(qemu_get_aio_context(), true); in call_in_coroutine()
190 blk = blk_new(qemu_get_aio_context(), BLK_PERM_ALL, BLK_PERM_ALL); in test_setup()
381 blk = blk_new(qemu_get_aio_context(), BLK_PERM_ALL, BLK_PERM_ALL); in test_nested()
431 blk_a = blk_new(qemu_get_aio_context(), BLK_PERM_ALL, BLK_PERM_ALL); in test_graph_change_drain_all()
447 blk_b = blk_new(qemu_get_aio_context(), BLK_PERM_ALL, BLK_PERM_ALL); in test_graph_change_drain_all()
546 blk = blk_new(qemu_get_aio_context(), BLK_PERM_ALL, BLK_PERM_ALL); in test_iothread_common()
607 blk_set_aio_context(blk, qemu_get_aio_context(), &error_abort); in test_iothread_common()
739 blk_src = blk_new(qemu_get_aio_context(), BLK_PERM_ALL, BLK_PERM_ALL); in test_blockjob_common_drain_node()
763 blk_target = blk_new(qemu_get_aio_context(), BLK_PERM_ALL, BLK_PERM_ALL); in test_blockjob_common_drain_node()
795 aio_poll(qemu_get_aio_context(), false); in test_blockjob_common_drain_node()
[all …]
H A Dtest-blockjob.c71 BlockBackend *blk = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in create_blk()
350 aio_poll(qemu_get_aio_context(), true); in test_cancel_pending()
353 aio_poll(qemu_get_aio_context(), true); in test_cancel_pending()
377 aio_poll(qemu_get_aio_context(), true); in test_cancel_concluded()
380 aio_poll(qemu_get_aio_context(), true); in test_cancel_concluded()
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-bdrv-graph-mod.c132 BlockBackend *root = blk_new(qemu_get_aio_context(), in test_update_perm_tree()
198 BlockBackend *root = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in test_should_update_child()
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.h93 qemu_get_aio_context()); \
95 aio_poll(qemu_get_aio_context(), true); \
145 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()
H A Dthread-pool.c328 ctx = qemu_get_aio_context(); in thread_pool_init_one()
/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/block/export/
H A Dexport.c231 aio_bh_schedule_oneshot(qemu_get_aio_context(), blk_exp_delete_bh, in blk_exp_unref()
286 assert(in_aio_context_home_thread(qemu_get_aio_context())); in blk_exp_close_all_type()
/openbmc/qemu/block/
H A Dcreate.c97 qemu_get_aio_context(), JOB_DEFAULT | JOB_MANUAL_DISMISS, in qmp_blockdev_create()
H A Dgraph-lock.c170 aio_bh_poll(qemu_get_aio_context()); in bdrv_graph_wrunlock()
/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/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()
/openbmc/qemu/hw/ide/
H A Dide-dev.c88 dev->conf.blk = blk_new(qemu_get_aio_context(), 0, BLK_PERM_ALL); in ide_dev_initfn()
/openbmc/qemu/hw/block/dataplane/
H A Dxen-block.c628 dataplane->ctx = qemu_get_aio_context(); in xen_block_dataplane_create()
700 blk_set_aio_context(dataplane->blk, qemu_get_aio_context(), &error_abort); in xen_block_dataplane_stop()
/openbmc/qemu/hw/hyperv/
H A Dhyperv_testdev.c131 aio_bh_schedule_oneshot(qemu_get_aio_context(), msg_retry, conn); in msg_cb()
/openbmc/qemu/
H A Diothread.c407 return qemu_get_current_aio_context() != qemu_get_aio_context(); in qemu_in_iothread()
H A Djob.c433 aio_timer_init(qemu_get_aio_context(), &job->sleep_timer, in job_create()
1112 aio_bh_schedule_oneshot(qemu_get_aio_context(), job_exit, job); in job_co_entry()
/openbmc/qemu/migration/
H A Dsavevm.c3444 aio_bh_schedule_oneshot(qemu_get_aio_context(), in snapshot_save_job_run()
3455 aio_bh_schedule_oneshot(qemu_get_aio_context(), in snapshot_load_job_run()
3466 aio_bh_schedule_oneshot(qemu_get_aio_context(), in snapshot_delete_job_run()
3501 qemu_get_aio_context(), JOB_MANUAL_DISMISS, in qmp_snapshot_save()
3523 qemu_get_aio_context(), JOB_MANUAL_DISMISS, in qmp_snapshot_load()
3544 qemu_get_aio_context(), JOB_MANUAL_DISMISS, in qmp_snapshot_delete()

123