]> git.proxmox.com Git - mirror_qemu.git/commit - monitor.c
monitor: let suspend/resume work even with QMPs
authorPeter Xu <peterx@redhat.com>
Fri, 9 Mar 2018 08:59:56 +0000 (16:59 +0800)
committerEric Blake <eblake@redhat.com>
Mon, 19 Mar 2018 19:58:37 +0000 (14:58 -0500)
commite3e977d45b0750d7e4b8f9cac4b89e8082235188
tree97494fe06d9a4415e38f4c718942ec43f759491a
parentdf152fb950e3e00d0186cbdc412dc8ddcc618621
monitor: let suspend/resume work even with QMPs

This patches allows QMP monitors to be suspended/resumed.

One thing to mention is that for QMPs that are using IOThreads, we need
an explicit kick for the IOThread in case it is sleeping.

Meanwhile, we need to take special care on non-interactive HMPs.
Currently only gdbserver is using that.  For these monitors, we still
don't allow suspend/resume operations.

Since at it, add traces for the operations.

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180309090006.10018-14-peterx@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
monitor.c
trace-events