qemu/monitor
Paolo Bonzini 0ff2553701 monitor: cleanup fetching of QMP requests
Use a continue statement so that "after going to sleep" is treated the same
way as "after processing a request".  Pull the monitor_lock critical
section out of monitor_qmp_requests_pop_any_with_lock() and protect
qmp_dispatcher_co_shutdown with the monitor_lock.

The two changes are complex to separate because monitor_qmp_dispatcher_co()
previously had a complicated logic to check for shutdown both before
and after going to sleep.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-05-25 10:18:33 +02:00
..
fds.c monitor: restrict command getfd to POSIX hosts 2023-03-13 15:46:09 +04:00
hmp-cmds-target.c monitor: Move target-dependent HMP commands to hmp-cmds-target.c 2023-02-04 07:56:54 +01:00
hmp-cmds.c monitor: restrict command getfd to POSIX hosts 2023-03-13 15:46:09 +04:00
hmp-target.c monitor: Rename misc.c to hmp-target.c 2023-02-04 07:56:54 +01:00
hmp.c monitor: do not use mb_read/mb_set for suspend_cnt 2023-05-25 10:18:33 +02:00
meson.build monitor: Rename misc.c to hmp-target.c 2023-02-04 07:56:54 +01:00
monitor-internal.h monitor: do not use mb_read/mb_set for suspend_cnt 2023-05-25 10:18:33 +02:00
monitor.c monitor: cleanup fetching of QMP requests 2023-05-25 10:18:33 +02:00
qmp-cmds-control.c
qmp-cmds.c qmp: 'add_client' actually expects sockets 2023-03-13 15:40:41 +04:00
qmp.c monitor: cleanup fetching of QMP requests 2023-05-25 10:18:33 +02:00
trace-events
trace.h