474514668b
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> |
||
---|---|---|
.. | ||
arch-query-cpu-def.c | ||
arch-query-cpu-model-baseline.c | ||
arch-query-cpu-model-comparison.c | ||
arch-query-cpu-model-expansion.c | ||
bdrv-next-monitor-owned.c | ||
blk-commit-all.c | ||
blockdev-close-all-bdrv-states.c | ||
change-state-handler.c | ||
clock-warp.c | ||
cpu-get-clock.c | ||
cpu-get-icount.c | ||
dump.c | ||
error-printf.c | ||
fd-register.c | ||
fdset.c | ||
gdbstub.c | ||
get-vm-name.c | ||
iothread-lock.c | ||
iothread.c | ||
is-daemonized.c | ||
linux-aio.c | ||
machine-init-done.c | ||
Makefile.objs | ||
migr-blocker.c | ||
monitor.c | ||
notify-event.c | ||
pc_madt_cpu_entry.c | ||
pci-host-piix.c | ||
qmp_memory_device.c | ||
qtest.c | ||
ram-block.c | ||
replay.c | ||
runstate-check.c | ||
set-fd-handler.c | ||
slirp.c | ||
sysbus.c | ||
target-get-monitor-def.c | ||
target-monitor-defs.c | ||
tpm.c | ||
trace-control.c | ||
uuid.c | ||
vm-stop.c | ||
vmgenid.c | ||
vmstate.c | ||
xen-common.c | ||
xen-hvm.c |