qemu/util
Peter Xu 474514668b monitor: add lock to protect mon_fdsets
Introduce a new global big lock for mon_fdsets.  Take it where needed.

The monitor_fdset_get_fd() handling is a bit tricky: now we need to call
qemu_mutex_unlock() which might pollute errno, so we need to make sure
the correct errno be passed up to the callers.  To make things simpler,
we let monitor_fdset_get_fd() return the -errno directly when error
happens, then in qemu_open() we move it back into errno.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180608035511.7439-8-peterx@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2018-06-18 15:48:22 +02:00
..
acl.c
aio-posix.c iothread: fix epollfd leak in the process of delIOThread 2018-05-18 17:09:54 +08:00
aio-wait.c
aio-win32.c iothread: fix epollfd leak in the process of delIOThread 2018-05-18 17:09:54 +08:00
aiocb.c
async.c iothread: fix epollfd leak in the process of delIOThread 2018-05-18 17:09:54 +08:00
base64.c
bitmap.c
bitops.c
buffer.c
bufferiszero.c
cacheinfo.c
compatfd.c
coroutine-sigaltstack.c
coroutine-ucontext.c
coroutine-win32.c
crc32c.c
cutils.c
envlist.c
error.c
event_notifier-posix.c
event_notifier-win32.c
fifo8.c
getauxval.c
hbitmap.c
hexdump.c
host-utils.c
id.c
iohandler.c
iov.c
iova-tree.c util: implement simple iova tree 2018-05-23 17:33:58 +03:00
keyval.c
lockcnt.c
log.c tcg: Optionally log FPU state in TCG -d cpu logging 2018-05-15 14:58:44 +01:00
main-loop.c main-loop: drop spin_counter 2018-06-01 16:01:29 +01:00
Makefile.objs util: implement simple iova tree 2018-05-23 17:33:58 +03:00
memfd.c memfd: Avoid Coverity warning about integer overflow 2018-06-01 15:13:46 +02:00
mmap-alloc.c
module.c
notify.c
osdep.c monitor: add lock to protect mon_fdsets 2018-06-18 15:48:22 +02:00
oslib-posix.c
oslib-win32.c
pagesize.c
path.c
qdist.c
qemu-config.c block: Add block-specific QDict header 2018-06-15 14:49:44 +02:00
qemu-coroutine-io.c
qemu-coroutine-lock.c
qemu-coroutine-sleep.c
qemu-coroutine.c
qemu-error.c
qemu-openpty.c
qemu-option.c qemu-option: Pull out "Supported options" print 2018-06-11 16:18:45 +02:00
qemu-progress.c
qemu-sockets.c
qemu-thread-posix.c qemu-thread: always keep the posix wrapper layer 2018-05-09 00:13:38 +02:00
qemu-thread-win32.c
qemu-timer-common.c
qemu-timer.c
qht.c Purge uses of banned g_assert_FOO() 2018-06-13 13:47:35 +02:00
range.c
rcu.c
readline.c
stats64.c
sys_membarrier.c
systemd.c
thread-pool.c
throttle.c
timed-average.c
trace-events
unicode.c
uri.c Remove unnecessary variables for function return value 2018-05-20 08:48:13 +03:00
uuid.c
vfio-helpers.c replace functions which are only available in glib-2.24 2018-05-20 08:55:01 +03:00