Home
last modified time | relevance | path

Searched full:loop (Results 1 – 25 of 658) sorted by relevance

12345678910>>...27

/qemu/docs/devel/
H A Dmultiple-iothreads.rst14 The main loop and ``IOThread``\ s
17 event loop. The VNC server and the QMP monitor are both processed from the
18 same event loop, which monitors their file descriptors until they become
21 The default event loop is called the main loop (see ``main-loop.c``). It is
22 possible to create additional event loop threads using
25 Side note: The main loop and ``IOThread`` are both event loops but their code is
31 ``IOThread``\ s allow the user to control the placement of work. The main loop is a
33 several ``IOThread``\ s instead of just one main loop. When set up correctly this
36 The main loop is also deeply associated with the BQL, which is a
37 scalability bottleneck in itself. vCPU threads and the main loop use the BQL
[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/include/qemu/
H A Dmain-loop.h30 #include "system/event-loop-base.h"
34 #define TYPE_MAIN_LOOP "main-loop"
43 * qemu_init_main_loop: Set up the process so that it can run the main loop.
47 * main one should block signals that are trapped by the main loop.
58 * main_loop_wait: Run one iteration of the main loop.
61 * one actually occurs. The main loop usually consists of a loop that
64 * Main loop services include file descriptor callbacks, bottom halves
70 * case, the coroutine actually should be started from within the main loop,
71 * so that the main loop can run whenever the coroutine yields. To do this,
72 * you can use a bottom half to enter the coroutine as soon as the main loop
[all …]
/qemu/python/qemu/qmp/
H A Dutil.py71 possible. If they go unhandled, they will cause termination of the loop.
88 loop: Optional[asyncio.AbstractEventLoop] = None
94 :param loop: Optionally, the loop to create the task in.
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/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/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.c86 GMainLoop *loop; member
104 g_main_loop_quit(test->loop); in listener_handle_scanout()
137 g_main_loop_quit(test->loop); in listener_handle_scanout_map()
202 g_main_loop_quit(test->loop); in test_dbus_console_registered()
224 g_autoptr(GMainLoop) loop = NULL; in test_dbus_display_console()
254 test.loop = loop = g_main_loop_new(NULL, FALSE); in test_dbus_display_console()
289 g_main_loop_run(loop); in test_dbus_display_console()
H A Dboot-serial-test.c34 0xff, 0xf3, 0xff, 0x53, /* b -16 # loop */
42 0x60, 0xfa /* bra.s loop */
53 0x60, 0xfa /* bra.s loop */
61 0xb8, 0x00, 0xff, 0xfc /* bri -4 loop */
69 0xfc, 0xff, 0x00, 0xb8 /* bri -4 loop */
77 0x00, 0x20, 0xc3, 0xe5, /* loop: strb r2, [r3] *TXDAT = 'T' */
78 0xff, 0xff, 0xff, 0xea, /* b -4 (loop) */
88 0x41, 0x00, 0x00, 0x39, /* loop: strb w1, [x2] *TXDAT = 'T' */
89 0xff, 0xff, 0xff, 0x17, /* b -4 (loop) */
/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()
210 * the main loop thread (ie this one) */ 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()
252 * the main loop thread (ie this one) */ in test_task_thread_failure()
/qemu/include/block/
H A Daio-wait.h29 #include "qemu/main-loop.h"
37 * The main loop can wait on an operation running in an IOThread as follows:
44 * The IOThread must call aio_wait_kick() to notify the main loop when
68 * operations that require event loop activity.
73 * The caller's thread must be the IOThread that owns @ctx or the main loop
76 * go via the main loop instead.
113 * IOThread's event loop run, waiting for the operation to complete. A
126 * Must be called from the main loop thread without @ctx acquired.
127 * Note that main loop event processing may occur.
H A Dgraph-lock.h28 * Currently we have 1 writer only, the Main loop, and many
31 * We distinguish between writer (main loop, under BQL) that modifies the
36 * The writer (main loop) has an "exclusive" access, so it first waits for
109 * The wrlock can only be taken from the main loop, with BQL held, as only the
110 * main loop is allowed to modify the graph.
137 * Calling this function from the Main Loop with BQL held
138 * is not necessary, since the Main Loop itself is the only
142 * loop) to take it and wait that the coroutine ends, so that
160 * in the main loop. It is just asserting that we are not
171 * Make sure that the reader is either the main loop,
[all …]
H A Daio.h159 * aio_poll or the glib main event loop, making event_notifier_set
245 * ctx->list_lock. Iterated and modified mostly by the event loop thread
263 * AioContext provide a mini event-loop that can be waited on synchronously.
343 * or go through another iteration of the GLib main loop. Hence, aio_notify
345 * that the main loop waits for.
378 * These are internal functions used by the QEMU main loop.
387 * Scheduling a bottom half interrupts the main loop and causes the
391 * invoked. This can create an infinite loop if a bottom half handler
404 * loop that executes bottom halves unless you are holding the iothread
501 /* Return a GSource that lets the main loop poll the file descriptors attached
[all …]
/qemu/include/io/
H A Dchannel-watch.h38 * Create a new main loop source that is able to
44 * Returns: the new main loop source
56 * Create a new main loop source that is able to
62 * Returns: the new main loop source
75 * Create a new main loop source that is able to
83 * Returns: the new main loop source
/qemu/tests/tcg/multiarch/system/
H A Dinterrupt.c4 * infinite loop from GDB.
12 void loop(void) in loop() function
16 * Loop forever. Just make sure the condition is always a constant in loop()
17 * expression, so that this loop is not UB, as per the C in loop()
/qemu/tests/tcg/multiarch/gdbstub/
H A Dinterrupt.py24 # Enter the loop() function on this thread.
29 # the program reaching the loop() function on its own.
31 # For this to be safe, we only need the prologue of loop() to not have
34 gdb.execute("set $pc = loop")
/qemu/target/hexagon/imported/
H A Dbranch.idef208 /* HW Loop instructions */
211 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",
240 Q6INSN(J2_ploop1si,"p3=sp1loop0(#r7:2,#U10)",ATTRIBS(A_ARCHV2),"Initialize HW loop 0",
247 Q6INSN(J2_ploop2sr,"p3=sp2loop0(#r7:2,Rs32)",ATTRIBS(A_ARCHV2),"Initialize HW loop 0",
253 Q6INSN(J2_ploop2si,"p3=sp2loop0(#r7:2,#U10)",ATTRIBS(A_ARCHV2),"Initialize HW loop 0",
260 Q6INSN(J2_ploop3sr,"p3=sp3loop0(#r7:2,Rs32)",ATTRIBS(A_ARCHV2),"Initialize HW loop 0",
[all …]
/qemu/hw/remote/
H A Dmpqemu-link.c18 #include "qemu/main-loop.h"
26 * - main loop in co-routine context. Will block the main loop if not in
29 * of the main loop handling;
88 * - From main loop in co-routine context. Will block the main loop if not in
91 * of the main loop handling;
/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()
/qemu/linux-user/
H A Dlinux_loop.h9 * include/linux/loop.h
22 * Loop flags
71 * Loop filter types
102 /* /dev/loop-control interface */
/qemu/include/
H A Dqemu-main.h10 * NULL means QEMU's main event loop.
11 * When non-NULL, QEMU's main event loop will run on a purposely created
19 * event loop.
/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/hw/audio/
H A Dgusemu_mixer.c114 if (GUSvoice(wVSRVolRampControl) & 0x800) /* loop enabled */ in gus_mixvoices()
116 if (GUSvoice(wVSRVolRampControl) & 0x1000) /* bidir. loop */ in gus_mixvoices()
122 …Volume32 = (GUSvoice(wVSRVolRampControl) & 0x4000) ? EndVol32 : StartVol32; /* unidir. loop ramp */ in gus_mixvoices()
149 if (GUSvoice(wVSRControl) & 0x800) /* loop enabled */ in gus_mixvoices()
151 if (GUSvoice(wVSRControl) & 0x1000) /* pingpong loop */ in gus_mixvoices()
157 … CurrPos = (GUSvoice(wVSRControl) & 0x4000) ? LoopEnd : LoopStart; /* unidir. loop */ in gus_mixvoices()
160 … GUSvoice(wVSRControl) |= 0x100; /* loop disabled, rollover check */ in gus_mixvoices()
/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.

12345678910>>...27