qemu-e2k/include
Paolo Bonzini a59629fcc6 rcu: do not create thread in pthread_atfork callback
If QEMU forks after the CPU threads have been created, qemu_mutex_lock_iothread
will not be able to do qemu_cpu_kick_thread.  There is no solution other than
assuming that forks after the CPU threads have been created will end up in an
exec.  Forks before the CPU threads have been created (such as -daemonize)
have to call rcu_after_fork manually.

Notably, the oxygen theme for GTK+ forks and shows a "No such process" error
without this patch.

This patch can be reverted once the iothread loses the "kick the TCG thread"
magic.

User-mode emulation does not use the iothread, so it can also call
rcu_after_fork.

Reported by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Tested by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-04-01 10:06:38 +02:00
..
block nbd: Set block size to BDRV_SECTOR_SIZE 2015-03-18 12:07:01 +01:00
disas
exec tcg: Change translator-side labels to a pointer 2015-03-13 12:28:18 -07:00
fpu softfloat: expand out STATUS macro 2015-02-06 16:11:38 +00:00
hw powerpc: fix -machine usb=no for newworld and pseries machines 2015-03-25 22:49:47 +01:00
libdecnumber
migration migration: Remove unused functions 2015-03-17 15:20:37 +01:00
monitor qom: Implement info qom-tree HMP command 2015-03-17 14:31:21 +01:00
net virtio-net,tap: use standard-headers 2015-02-26 13:04:04 +01:00
qapi qerror.h: Swap definitions that were not in alphabetical order 2015-03-10 08:15:33 +03:00
qemu rcu: do not create thread in pthread_atfork callback 2015-04-01 10:06:38 +02:00
qom qom: Add can_be_deleted callback to UserCreatableClass 2015-04-01 10:06:38 +02:00
standard-headers misc fixes and cleanups 2015-03-12 09:13:07 +00:00
sysemu numa: introduce machine callback for VCPU to node mapping 2015-03-19 16:12:09 -03:00
ui pixman: add a bunch of PIXMAN_BE_* defines for 32bpp 2015-03-12 15:50:11 +01:00
config.h
elf.h elf-loader: Provide the possibility to relocate s390 ELF files 2015-03-10 09:26:27 +01:00
glib-compat.h
qemu-common.h qxl: refactor rounding up to a nearest power of 2 2015-03-03 08:33:08 +01:00
qemu-io.h qemu-io: Use BlockBackend 2015-02-16 15:07:19 +00:00
qjson.h QJSON: Add JSON writer 2015-02-05 17:16:14 +01:00
trace-tcg.h
trace.h