qemu-e2k/include
Robert Foley 7606488c0e Add use of RCU for qemu_logfile.
This now allows changing the logfile while logging is active,
and also solves the issue of a seg fault while changing the logfile.

Any read access to the qemu_logfile handle will use
the rcu_read_lock()/unlock() around the use of the handle.
To fetch the handle we will use atomic_rcu_read().
We also in many cases do a check for validity of the
logfile handle before using it to deal with the case where the
file is closed and set to NULL.

The cases where we write to the qemu_logfile will use atomic_rcu_set().
Writers will also use call_rcu() with a newly added qemu_logfile_free
function for freeing/closing when readers have finished.

Signed-off-by: Robert Foley <robert.foley@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20191118211528.3221-6-robert.foley@linaro.org>
2019-12-18 20:18:02 +00:00
..
authz
block nbd: Don't send oversize strings 2019-11-18 16:01:34 -06:00
chardev
crypto
disas plugin: add qemu_plugin_insn_disas helper 2019-10-28 15:12:38 +00:00
exec Add use of RCU for qemu_logfile. 2019-12-18 20:18:02 +00:00
fpu
hw * Removal of the deprecated bluetooth code 2019-12-17 15:55:20 +00:00
io
libdecnumber
migration migration: add new migration state wait-unplug 2019-10-29 18:55:26 -04:00
monitor
net
qapi
qemu Add use of RCU for qemu_logfile. 2019-12-18 20:18:02 +00:00
qom
scsi
standard-headers linux-headers: Update 2019-12-17 10:39:48 +11:00
sysemu glib: use portable g_setenv() 2019-12-17 09:05:23 +01:00
ui
user *-user: plugin syscalls 2019-10-28 15:12:38 +00:00
elf.h
glib-compat.h
qemu-common.h exec: Split out variable page size support to exec-vary.c 2019-10-28 10:26:02 +01:00
qemu-io.h
trace-tcg.h