]> git.proxmox.com Git - mirror_qemu.git/commit
monitor: cleanup detection of qmp_dispatcher_co shutting down
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 3 Mar 2023 11:45:29 +0000 (12:45 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 May 2023 08:18:33 +0000 (10:18 +0200)
commit3e6bed619a1d13858e540e01aae275abdf9146ae
tree08715eb19099a77552849001bd2cb273d92060b4
parent6ee7c82d0df9bb6e972a8ea689b935df3ba37486
monitor: cleanup detection of qmp_dispatcher_co shutting down

Instead of overloading qmp_dispatcher_co_busy, make the coroutine
pointer NULL.  This will make things break spectacularly if somebody
tries to start a request after monitor_cleanup().

AIO_WAIT_WHILE_UNLOCKED() does not need qatomic_mb_read(), because
the macro contains all the necessary memory barriers.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
monitor/monitor.c
monitor/qmp.c