qemu-e2k/include/sysemu
Peter Xu b506e0f16c iothread: create the gcontext unconditionally
In existing code we create the gcontext dynamically at the first
access of the gcontext from caller.  That can bring some complexity
and potential races during using iothread.  Since the context itself
is not that big a resource, and we won't have millions of iothread,
let's simply create the gcontext unconditionally.

This will also be a preparation work further to move the thread
context push operation earlier than before (now it's only pushed right
before we want to start running the gmainloop).

Removing the g_once since it's not necessary, while introducing a new
run_gcontext boolean to show whether we want to run the gcontext.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-id: 20190306115532.23025-3-peterx@redhat.com
Message-Id: <20190306115532.23025-3-peterx@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2019-03-08 10:16:15 +00:00
..
accel.h accel: Improve selection of the default accelerator 2019-01-11 13:57:23 +01:00
arch_init.h qapi: make query-cpu-definitions depend on specific targets 2019-02-18 14:44:05 +01:00
balloon.h avoid TABs in files that only contain a few 2019-01-11 15:46:56 +01:00
block-backend.h block-backend: Make blk_inc/dec_in_flight public 2019-02-25 15:03:19 +01:00
blockdev.h
bt.h hw/bt: Remove HCIInfo from "qemu/typedefs.h" 2019-01-22 05:14:32 +01:00
cpus.h
cryptodev-vhost-user.h
cryptodev-vhost.h
cryptodev.h
device_tree.h
dma.h
dump-arch.h
dump.h
hax.h
hostmem.h hostmem: use object id for memory region name with >= 4.0 2019-01-07 16:18:42 +04:00
hvf.h
hw_accel.h
iothread.h iothread: create the gcontext unconditionally 2019-03-08 10:16:15 +00:00
kvm_int.h
kvm.h qemu/queue.h: leave head structs anonymous unless necessary 2019-01-11 15:46:55 +01:00
memory_mapping.h qemu/queue.h: simplify reverse access to QTAILQ 2019-01-11 15:46:55 +01:00
numa.h numa: Match struct to typedef name 2018-12-11 15:45:22 -02:00
os-posix.h
os-win32.h
qtest.h
replay.h
reset.h
rng-random.h
rng.h qemu/queue.h: leave head structs anonymous unless necessary 2019-01-11 15:46:55 +01:00
seccomp.h
sev.h
sysemu.h migration: Switch to using announce timer 2019-03-05 11:27:41 +08:00
tpm_backend.h
tpm.h qom: make interface types abstract 2018-12-11 15:45:22 -02:00
watchdog.h
whpx.h Clean up includes 2018-12-20 10:29:08 +01:00
xen-mapcache.h