/qemu/ |
H A D | iothread.c | 69 if (iothread->running && qatomic_read(&iothread->run_gcontext)) { in iothread_run() 93 if (!iothread->ctx || iothread->stopping) { in iothread_stop() 97 aio_bh_schedule_oneshot(iothread->ctx, iothread_stop_bh, iothread); in iothread_stop() 128 if (iothread->ctx) { in iothread_instance_finalize() 151 iothread->main_loop = g_main_loop_new(iothread->worker_context, TRUE); in iothread_init_gcontext() 159 if (!iothread->ctx) { in iothread_set_aio_context_params() 189 if (!iothread->ctx) { in iothread_init() 286 if (iothread->ctx) { in iothread_set_poll_param() 339 return iothread->ctx; in iothread_get_aio_context() 346 IOThread *iothread; in query_one_iothread() local [all …]
|
/qemu/tests/unit/ |
H A D | iothread.c | 41 iothread->main_loop = g_main_loop_new(iothread->worker_context, TRUE); in iothread_init_gcontext() 46 IOThread *iothread = opaque; in iothread_run() local 59 iothread_init_gcontext(iothread); in iothread_run() 81 IOThread *iothread = opaque; in iothread_stop_bh() local 83 iothread->stopping = true; in iothread_stop_bh() 88 aio_bh_schedule_oneshot(iothread->ctx, iothread_stop_bh, iothread); in iothread_join() 94 aio_context_unref(iothread->ctx); in iothread_join() 95 g_free(iothread); in iothread_join() 109 while (iothread->ctx == NULL) { in iothread_new() 114 return iothread; in iothread_new() [all …]
|
H A D | test-block-iothread.c | 468 IOThread *iothread = iothread_new(); in test_sync_op() local 469 AioContext *ctx = iothread_get_aio_context(iothread); in test_sync_op() 551 IOThread *iothread = iothread_new(); in test_attach_blockjob() local 552 AioContext *ctx = iothread_get_aio_context(iothread); in test_attach_blockjob() 614 IOThread *iothread = iothread_new(); in test_propagate_basic() local 615 AioContext *ctx = iothread_get_aio_context(iothread); in test_propagate_basic() 678 IOThread *iothread = iothread_new(); in test_propagate_diamond() local 679 AioContext *ctx = iothread_get_aio_context(iothread); in test_propagate_diamond() 743 IOThread *iothread = iothread_new(); in test_propagate_mirror() local 814 IOThread *iothread = iothread_new(); in test_attach_second_node() local [all …]
|
H A D | iothread.h | 22 void iothread_join(IOThread *iothread); 23 AioContext *iothread_get_aio_context(IOThread *iothread);
|
/qemu/tests/qemu-iotests/ |
H A D | 240.out | 4 {"execute": "object-add", "arguments": {"id": "iothread0", "qom-type": "iothread"}} 6 {"execute": "device_add", "arguments": {"driver": "virtio-scsi", "id": "scsi0", "iothread": "iothre… 18 .==Attach two SCSI disks using the same block device and the same iothread== 21 {"execute": "object-add", "arguments": {"id": "iothread0", "qom-type": "iothread"}} 23 {"execute": "device_add", "arguments": {"driver": "virtio-scsi", "id": "scsi0", "iothread": "iothre… 38 {"execute": "object-add", "arguments": {"id": "iothread0", "qom-type": "iothread"}} 40 {"execute": "object-add", "arguments": {"id": "iothread1", "qom-type": "iothread"}} 42 {"execute": "device_add", "arguments": {"driver": "virtio-scsi", "id": "scsi0", "iothread": "iothre… 44 {"execute": "device_add", "arguments": {"driver": "virtio-scsi", "id": "scsi1", "iothread": "iothre… 49 {"error": {"class": "GenericError", "desc": "Cannot change iothread of active block backend"}} [all …]
|
H A D | 240 | 45 …self.vm.qmp_log('device_add', id='scsi0', driver='virtio-scsi', iothread='iothread0', filters=[iot… 58 …self.vm.qmp_log('device_add', id='scsi0', driver='virtio-scsi', iothread='iothread0', filters=[iot… 76 …self.vm.qmp_log('device_add', id='scsi0', driver='virtio-scsi', iothread='iothread0', filters=[iot… 77 …self.vm.qmp_log('device_add', id='scsi1', driver='virtio-scsi', iothread='iothread1', filters=[iot… 102 …self.vm.qmp_log('device_add', id='scsi0', driver='virtio-scsi', iothread='iothread0', filters=[iot…
|
H A D | 051 | 191 echo === Attach to node in non-default iothread === 196 …iothread="-drive file=$TEST_IMG,if=none,node-name=disk -object iothread,id=thread0 -device virtio-… 199 run_qemu $iothread -device ide-hd,drive=disk,share-rw=on 200 run_qemu $iothread -device virtio-blk-pci,drive=disk,share-rw=on 201 … run_qemu $iothread -device lsi53c895a,id=lsi0 -device scsi-hd,bus=lsi0.0,drive=disk,share-rw=on 202 …run_qemu $iothread -device virtio-scsi,id=virtio-scsi1 -device scsi-hd,bus=virtio-scsi1.0,drive=di… 207 run_qemu $iothread -device virtio-blk-pci,drive=disk,iothread=thread0,share-rw=on 208 …run_qemu $iothread -device virtio-scsi,id=virtio-scsi1,iothread=thread0 -device scsi-hd,bus=virtio…
|
H A D | 281 | 50 node_name='drive0', iothread='iothread0', 86 node_name='drive0', iothread='iothread0', 96 node_name='drive0', iothread='iothread0', 151 node_name='drive0', iothread='iothread0', 301 node_name='nbd', iothread='iothr')
|
H A D | 307.out | 39 === Move export to an iothread === 56 === Add export with conflicting iothread === 59 {"execute": "block-export-add", "arguments": {"fixed-iothread": true, "id": "export1", "iothread": … 60 {"error": {"class": "GenericError", "desc": "Cannot change iothread of active block backend"}} 61 {"execute": "block-export-add", "arguments": {"fixed-iothread": false, "id": "export1", "iothread":…
|
H A D | 223 | 113 _launch_qemu -object iothread,id=io0 2> >(_filter_nbd) 129 for attempt in normal iothread; do 134 if [ $attempt = iothread ]; then
|
H A D | 203 | 48 node_name='drive0-node', iothread='iothread0', 51 node_name='drive1-node', iothread='iothread0',
|
H A D | 202 | 68 iothread='iothread0')) 71 iothread='iothread0'))
|
H A D | 127 | 64 -object iothread,id=iothr \ 66 -device virtio-scsi,id=scsi-bus,iothread=iothr \
|
H A D | 068.out | 14 … reloading a VM state to/from a qcow2 image (-object iothread,id=iothread0 -set device.hba0.iothre…
|
H A D | 051.pc.out | 168 === Attach to node in non-default iothread === 170 …ile=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothre… 172 (qemu) QEMU_PROG: -device ide-hd,drive=disk,share-rw=on: Cannot change iothread of active block bac… 174 …ile=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothre… 176 (qemu) QEMU_PROG: -device virtio-blk-pci,drive=disk,share-rw=on: Cannot change iothread of active b… 178 …ile=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothre… 182 …ile=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothre… 184 (qemu) QEMU_PROG: -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on: Cannot change iothread… 186 …iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virti… 188 …emu) QEMU_PROG: -device virtio-blk-pci,drive=disk,iothread=thread0,share-rw=on: Cannot change ioth… [all …]
|
/qemu/include/sysemu/ |
H A D | iothread.h | 47 char *iothread_get_id(IOThread *iothread); 49 AioContext *iothread_get_aio_context(IOThread *iothread); 50 GMainContext *iothread_get_g_main_context(IOThread *iothread); 58 void iothread_stop(IOThread *iothread); 59 void iothread_destroy(IOThread *iothread);
|
/qemu/hw/remote/ |
H A D | mpqemu-link.c | 37 bool iothread = qemu_in_iothread(); in mpqemu_msg_send() local 58 assert(qemu_in_coroutine() || !iothread); in mpqemu_msg_send() 66 if (drop_bql && !iothread && !qemu_in_coroutine()) { in mpqemu_msg_send() 77 if (drop_bql && !iothread && !qemu_in_coroutine()) { in mpqemu_msg_send() 100 bool iothread = qemu_in_iothread(); in mpqemu_read() local 107 assert(qemu_in_coroutine() || !iothread); in mpqemu_read() 109 if (drop_bql && !iothread && !qemu_in_coroutine()) { in mpqemu_read() 115 if (drop_bql && !iothread && !qemu_in_coroutine()) { in mpqemu_read()
|
/qemu/hw/block/ |
H A D | xen-block.c | 994 g_free(iothread->id); in xen_block_iothread_destroy() 995 g_free(iothread); in xen_block_iothread_destroy() 1005 iothread->id = g_strdup(id); in xen_block_iothread_create() 1016 g_free(iothread->id); in xen_block_iothread_create() 1017 g_free(iothread); in xen_block_iothread_create() 1021 return iothread; in xen_block_iothread_create() 1033 XenBlockIOThread *iothread = NULL; in xen_block_device_create() local 1100 blockdev->iothread = iothread; in xen_block_device_create() 1116 if (iothread) { in xen_block_device_create() 1133 XenBlockIOThread *iothread = blockdev->iothread; in xen_block_device_destroy() local [all …]
|
/qemu/block/export/ |
H A D | export.c | 118 if (export->iothread) { in blk_exp_add() 119 IOThread *iothread; in blk_exp_add() local 123 iothread = iothread_by_id(export->iothread); in blk_exp_add() 124 if (!iothread) { in blk_exp_add() 125 error_setg(errp, "iothread \"%s\" not found", export->iothread); in blk_exp_add() 129 new_ctx = iothread_get_aio_context(iothread); in blk_exp_add()
|
/qemu/scripts/qemugdb/ |
H A D | tcg.py | 28 iothread = gdb.parse_and_eval("iothread_locked") 42 iothread, replay, blocked))
|
/qemu/hw/block/dataplane/ |
H A D | xen-block.c | 66 IOThread *iothread; member 612 IOThread *iothread) in xen_block_dataplane_create() argument 623 if (iothread) { in xen_block_dataplane_create() 624 dataplane->iothread = iothread; in xen_block_dataplane_create() 625 object_ref(OBJECT(dataplane->iothread)); in xen_block_dataplane_create() 626 dataplane->ctx = iothread_get_aio_context(dataplane->iothread); in xen_block_dataplane_create() 654 if (dataplane->iothread) { in xen_block_dataplane_destroy() 655 object_unref(OBJECT(dataplane->iothread)); in xen_block_dataplane_destroy()
|
/qemu/tests/qemu-iotests/tests/ |
H A D | iothreads-resize | 60 -object iothread,id=t0 \ 61 -device virtio-scsi-pci,iothread=t0 \
|
H A D | qcow2-internal-snapshots | 54 -object iothread,id=iothread0 \ 55 -device virtio-scsi,iothread=iothread0 \
|
/qemu/include/hw/xen/ |
H A D | xen-block.h | 38 IOThread *iothread; member 57 XenBlockIOThread *iothread; member
|
/qemu/qapi/ |
H A D | misc.json | 73 # Information about an iothread 75 # @id: the identifier of the iothread 104 # Returns a list of information about each iothread. 107 # declared using the -object iothread command-line option. It is 110 # Returns: a list of @IOThreadInfo for each iothread
|