Home
last modified time | relevance | path

Searched refs:loop (Results 1 – 25 of 87) sorted by relevance

1234

/qemu/docs/devel/
H A Dmultiple-iothreads.txt10 The main loop and IOThreads
14 same event loop, which monitors their file descriptors until they become
17 The default event loop is called the main loop (see main-loop.c). It is
18 possible to create additional event loop threads using -object
32 The main loop is also deeply associated with the BQL, which is a
38 BQL is contended by all vCPU threads and the main loop explain
49 (see include/block/aio.h). Code that only works in the main loop
59 There are several old APIs that use the main loop AioContext:
65 * LEGACY qemu_aio_wait() - run an event loop iteration
77 * aio_poll() - run an event loop iteration
[all …]
H A Dtcg-icount.rst41 translated block and will cause a return to the outer loop to deal
47 loop and regenerate a new translation block with exactly the right
49 was due to expire will expire exactly when we exit the main run loop.
63 - exit the cpu loop and execute the re-compiled block
H A Dtcg.rst42 main loop. That’s where QEMU looks for the next TB to execute,
55 main loop as described above. These mechanisms are:
66 branch to the next TB or return to the main loop.
78 that has been assumed constant and is required by the main loop to
100 Next, the main loop looks for the next TB to execute using the
110 the destination TB, without going back to the main loop.
124 different than the one that was directly executed from the main loop
/qemu/python/qemu/qmp/
H A Dutil.py88 loop: Optional[asyncio.AbstractEventLoop] = None
99 if loop is not None:
100 return loop.create_task(coro)
104 return asyncio.ensure_future(coro, loop=loop)
163 loop = asyncio.get_event_loop()
164 loop.set_debug(debug)
165 ret = loop.run_until_complete(coro)
166 loop.close()
/qemu/tests/qtest/
H A Ddbus-vmstate-test.c38 GMainLoop *loop; member
80 GMainLoop *loop; member
92 g_main_loop_quit(t->loop); in named_cb()
104 wait->loop = test->loop; in get_connection()
118 g_main_loop_run(wait->loop); in get_connection()
164 GMainLoop *loop = data; in dbus_vmstate_thread() local
166 g_main_loop_run(loop); in dbus_vmstate_thread()
189 g_autoptr(GMainLoop) loop = NULL; in test_dbus_vmstate()
196 loop = g_main_loop_new(NULL, FALSE); in test_dbus_vmstate()
197 test->loop = loop; in test_dbus_vmstate()
[all …]
H A Dvnc-display-test.c19 GMainLoop *loop; member
66 test->loop = g_main_loop_new(NULL, FALSE); in test_setup()
78 g_main_loop_quit(test->loop); in test_vnc_basic_on_vnc_initialized()
93 g_main_loop_run(test.loop); in test_vnc_basic()
97 g_main_loop_unref(test.loop); in test_vnc_basic()
H A Ddbus-display-test.c81 GMainLoop *loop; member
97 g_main_loop_quit(test->loop); in listener_handle_scanout()
141 g_main_loop_quit(test->loop); in test_dbus_console_registered()
163 g_autoptr(GMainLoop) loop = NULL; in test_dbus_display_console()
193 test.loop = loop = g_main_loop_new(NULL, FALSE); in test_dbus_display_console()
228 g_main_loop_run(loop); in test_dbus_display_console()
/qemu/tests/unit/
H A Dtest-io-task.c142 GMainLoop *loop; member
170 g_main_loop_quit(data->loop); in test_task_thread_callback()
181 data.loop = g_main_loop_new(g_main_context_default(), in test_task_thread_complete()
195 g_main_loop_run(data.loop); in test_task_thread_complete()
197 g_main_loop_unref(data.loop); in test_task_thread_complete()
222 data.loop = g_main_loop_new(g_main_context_default(), in test_task_thread_failure()
237 g_main_loop_run(data.loop); in test_task_thread_failure()
239 g_main_loop_unref(data.loop); in test_task_thread_failure()
H A Dtest-io-channel-socket.c90 GMainLoop *loop; member
99 g_main_loop_quit(data->loop); in test_io_channel_complete()
112 data.loop = g_main_loop_new(g_main_context_default(), in test_io_channel_setup_async()
120 g_main_loop_run(data.loop); in test_io_channel_setup_async()
141 g_main_loop_run(data.loop); in test_io_channel_setup_async()
155 g_main_loop_unref(data.loop); in test_io_channel_setup_async()
/qemu/tests/tcg/xtensa/
H A Dtest_loop.S3 test_suite loop
7 test loop
10 loop a3, 1f
18 loop a2, 1f
28 loop a3, 1f
38 loop a3, 1f
70 loop a3, 1f
/qemu/scripts/
H A Duserfaultfd-wrlat.py107 loop = 0 variable
111 loop += 1
112 if loop > count:
/qemu/io/
H A Dnet-listener.c183 GMainLoop *loop; member
204 g_main_loop_quit(data->loop); in qio_net_listener_wait_client_func()
213 GMainLoop *loop = g_main_loop_new(ctxt, TRUE); in qio_net_listener_wait_client() local
217 .loop = loop in qio_net_listener_wait_client()
241 g_main_loop_run(loop); in qio_net_listener_wait_client()
247 g_main_loop_unref(loop); in qio_net_listener_wait_client()
H A Dchannel.c731 GMainLoop *loop = opaque; in qio_channel_wait_complete() local
733 g_main_loop_quit(loop); in qio_channel_wait_complete()
742 GMainLoop *loop = g_main_loop_new(ctxt, TRUE); in qio_channel_wait() local
749 loop, in qio_channel_wait()
754 g_main_loop_run(loop); in qio_channel_wait()
757 g_main_loop_unref(loop); in qio_channel_wait()
/qemu/target/hexagon/imported/
H A Dbranch.idef211 Q6INSN(J2_loop0r,"loop0(#r7:2,Rs32)",ATTRIBS(),"Initialize HW loop 0",
217 Q6INSN(J2_loop1r,"loop1(#r7:2,Rs32)",ATTRIBS(),"Initialize HW loop 1",
222 Q6INSN(J2_loop0i,"loop0(#r7:2,#U10)",ATTRIBS(),"Initialize HW loop 0",
228 Q6INSN(J2_loop1i,"loop1(#r7:2,#U10)",ATTRIBS(),"Initialize HW loop 1",
234 Q6INSN(J2_ploop1sr,"p3=sp1loop0(#r7:2,Rs32)",ATTRIBS(A_ARCHV2),"Initialize HW loop 0",
290 /* decrement loop count */
296 /* decrement loop count */
303 Q6INSN(J2_endloop0,"endloop0",ATTRIBS(A_HWLOOP0_END),"Loopend for inner loop",
318 /* decrement loop count */
323 Q6INSN(J2_endloop1,"endloop1",ATTRIBS(A_HWLOOP1_END),"Loopend for outer loop",
[all …]
/qemu/contrib/vhost-user-scsi/
H A Dvhost-user-scsi.c37 GMainLoop *loop; member
227 g_main_loop_quit(vdev_scsi->loop); in vus_panic_cb()
416 vdev_scsi->loop = g_main_loop_new(NULL, FALSE); in main()
428 g_main_loop_run(vdev_scsi->loop); in main()
434 g_main_loop_unref(vdev_scsi->loop); in main()
/qemu/tests/tcg/loongarch64/system/
H A Dboot.S37 loop: label
45 bnez t1, loop
/qemu/tests/qemu-iotests/
H A D043.out5 qemu-img: Backing file 'TEST_DIR/t.IMGFMT' creates an infinite loop.
10 qemu-img: Backing file 'TEST_DIR/t.IMGFMT' creates an infinite loop.
17 qemu-img: Backing file 'TEST_DIR/t.IMGFMT.2.base' creates an infinite loop.
/qemu/tests/tcg/tricore/c/
H A Dcrt0-tc2x.S184 mov.a %a5,%d2 #; %a5 = loop counter
192 loop %a5,csa_loop #; repeat until done
224 mov.a %a2,%d0 # %a2 = loop counter
227 loop %a2,__clear_dword
269 mov.a %a2,%d0 # %a2 = loop counter
273 loop %a2,__copy_dword
/qemu/target/hexagon/
H A Dattribs_def.h.inc106 DEF_ATTRIB(IMPLICIT_WRITES_LC0, "Writes loop count for loop 0", "", "UREG.LC0")
107 DEF_ATTRIB(IMPLICIT_WRITES_LC1, "Writes loop count for loop 1", "", "UREG.LC1")
108 DEF_ATTRIB(IMPLICIT_WRITES_SA0, "Writes start addr for loop 0", "", "UREG.SA0")
109 DEF_ATTRIB(IMPLICIT_WRITES_SA1, "Writes start addr for loop 1", "", "UREG.SA1")
/qemu/contrib/vhost-user-blk/
H A Dvhost-user-blk.c42 GMainLoop *loop; member
96 g_main_loop_quit(vdev_blk->loop); in vub_panic_cb()
511 g_main_loop_unref(vdev_blk->loop); in vub_free()
560 vdev_blk->loop = g_main_loop_new(NULL, FALSE); in vub_new()
658 g_main_loop_run(vdev_blk->loop); in main()
659 g_main_loop_unref(vdev_blk->loop); in main()
/qemu/pc-bios/s390-ccw/
H A Dstart.S33 loop: label
36 brctg %r4,loop
/qemu/net/
H A Ddgram.c152 unsigned char loop; in net_dgram_mcast_create() local
154 int loop; in net_dgram_mcast_create() local
209 loop = 1; in net_dgram_mcast_create()
211 &loop, sizeof(loop)); in net_dgram_mcast_create()
/qemu/tests/migration/guestperf/
H A Dengine.py231 loop = 0
233 loop = loop + 1
237 if (loop % 20) == 0:
264 if self._verbose and (loop % 20) == 0:
/qemu/contrib/vhost-user-input/
H A Dmain.c298 GMainLoop *loop = NULL; in main() local
402 loop = g_main_loop_new(NULL, FALSE); in main()
403 g_main_loop_run(loop); in main()
404 g_main_loop_unref(loop); in main()
/qemu/tests/tcg/multiarch/system/
H A Dinterrupt.c12 void loop(void) in loop() function

1234