summary refs log tree commit diff stats
path: root/hw/core/qdev-prop-internal.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2021-02-01 17:15:04 +0100
committerMarkus Armbruster <armbru@redhat.com>2021-02-04 13:20:29 +0100
commit88daf0996cd0488e93e67bcb0af258f2c24f117a (patch)
tree4fb5645e5c3db6ceca5d12e5980345a51fe2af1b /hw/core/qdev-prop-internal.h
parentf680405f45afab692bd8021a35d40d037366abf1 (diff)
downloadfocaccia-qemu-88daf0996cd0488e93e67bcb0af258f2c24f117a.tar.gz
focaccia-qemu-88daf0996cd0488e93e67bcb0af258f2c24f117a.zip
qmp: Resume OOB-enabled monitor before processing the request
monitor_qmp_dispatcher_co() needs to resume the monitor if
handle_qmp_command() suspended it.  Two cases:

1. OOB enabled: suspended if mon->qmp_requests has no more space

2. OOB disabled: suspended always

We resume only after we processed the request.  Which can take a long
time.

Resume the monitor right when the queue has space to keep the monitor
available for out-of-band commands even in this corner case.

Leave the "OOB disabled" case alone.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210201161504.1976989-4-armbru@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
[Trailing whitespace tidied up]
Diffstat (limited to 'hw/core/qdev-prop-internal.h')
0 files changed, 0 insertions, 0 deletions