qemu-patch-raspberry4/include
Stefan Hajnoczi 02ffb50448 coroutine: stop using AioContext in CoQueue
qemu_co_queue_next(&queue) arranges that the next queued coroutine is
run at a later point in time.  This deferred restart is useful because
the caller may not want to transfer control yet.

This behavior was implemented using QEMUBH in the past, which meant that
CoQueue (and hence CoMutex and CoRwlock) had a dependency on the
AioContext event loop.  This hidden dependency causes trouble when we
move to a world with multiple event loops - now qemu_co_queue_next()
needs to know which event loop to schedule the QEMUBH in.

After pondering how to stash AioContext I realized the best solution is
to not use AioContext at all.  This patch implements the deferred
restart behavior purely in terms of coroutines and no longer uses
QEMUBH.

Here is how it works:

Each Coroutine has a wakeup queue that starts out empty.  When
qemu_co_queue_next() is called, the next coroutine is added to our
wakeup queue.  The wakeup queue is processed when we yield or terminate.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-05-24 16:17:56 +02:00
..
block coroutine: stop using AioContext in CoQueue 2013-05-24 16:17:56 +02:00
disas Add moxie disassembler 2013-03-23 14:25:41 +00:00
exec tcg-arm: Convert to CONFIG_QEMU_LDST_OPTIMIZATION 2013-04-27 02:16:45 +02:00
fpu softfloat: Implement uint64_to_float128 2013-01-05 10:12:50 +00:00
hw Merge remote-tracking branch 'mjt/trivial-patches' into staging 2013-05-22 08:22:36 -05:00
migration savevm: Implement block_writev_buffer() 2013-04-15 08:26:18 +02:00
monitor add a new qevent: QEVENT_GUEST_PANICKED 2013-04-30 10:30:01 -05:00
net hw: move headers to include/ 2013-04-08 18:13:10 +02:00
qapi remove some double-includes 2013-05-18 16:35:12 +04:00
qemu remove some double-includes 2013-05-18 16:35:12 +04:00
qom qom: aggressively optimize qom casting 2013-05-13 15:27:18 -05:00
sysemu osdep, kvm: rename low-level RAM allocation functions 2013-05-14 08:53:31 -05:00
ui console: zap ds arg from register_displaychangelistener 2013-04-25 14:45:46 -05:00
config.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
elf.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
glib-compat.h glib: add a compatibility interface for g_timeout_add_seconds 2013-03-25 13:10:40 -05:00
libfdt_env.h fdt: Use bswapN instead of bswap_N 2013-01-12 12:22:58 +00:00
qemu-common.h ui/gtk.c: Fix *BSD build of Gtk+ UI 2013-05-22 07:40:09 -05:00
trace.h build: some simplifications for "trace/Makefile.objs" 2013-01-12 18:42:51 +01:00