summaryrefslogtreecommitdiffstats
path: root/hw/core/null-machine.c
diff options
context:
space:
mode:
authorPaolo Bonzini2018-12-28 14:40:41 +0100
committerPaolo Bonzini2019-02-05 16:50:18 +0100
commit82e870bac441f231deb72b64c9baf2f2fbd5bdbb (patch)
tree222eef2927695d383133546f3ee2b4165ea263b5 /hw/core/null-machine.c
parentconfigure: enable elf2dmp build for Windows hosts (diff)
downloadqemu-82e870bac441f231deb72b64c9baf2f2fbd5bdbb.tar.gz
qemu-82e870bac441f231deb72b64c9baf2f2fbd5bdbb.tar.xz
qemu-82e870bac441f231deb72b64c9baf2f2fbd5bdbb.zip
monitor: do not use QTAILQ_FOREACH_SAFE across critical sections
monitor_qmp_requests_pop_any_with_lock cannot modify the monitor list concurrently with monitor_cleanup, since the dispatch bottom half runs in the main thread, but anyway it is a bit ugly to keep "next" live across critical sections of monitor_lock and Coverity complains (CID 1397072). Replace QTAILQ_FOREACH_SAFE with a while loop and QTAILQ_FIRST, it is cleaner and more future-proof. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/core/null-machine.c')
0 files changed, 0 insertions, 0 deletions