]> git.proxmox.com Git - mirror_qemu.git/commit - qga/main.c
qmp: Call monitor_set_cur() only in qmp_dispatch()
authorKevin Wolf <kwolf@redhat.com>
Mon, 5 Oct 2020 15:58:47 +0000 (17:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 9 Oct 2020 05:08:19 +0000 (07:08 +0200)
commit41725fa7eda1d97576fc8c79b58d04a61629f40e
treea0e2212ef757445c25a6bc4d385e0c999f832dc5
parent57d3635e42752289388b0a178fd636acbf3b90fa
qmp: Call monitor_set_cur() only in qmp_dispatch()

The correct way to set the current monitor for a coroutine handler will
be different than for a blocking handler, so monitor_set_cur() needs to
be called in qmp_dispatch().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20201005155855.256490-7-kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
include/qapi/qmp/dispatch.h
monitor/qmp.c
qapi/qmp-dispatch.c
qga/main.c
stubs/monitor-core.c
tests/test-qmp-cmds.c