diff options
author | Kevin Wolf <kwolf@redhat.com> | 2020-10-05 17:58:45 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-10-09 07:08:19 +0200 |
commit | ff04108a0e36e822519c517bd3bddbc1c7747c18 (patch) | |
tree | e16a9ae3f968dc638f449bacae35ab153c88a7cb /monitor/qmp.c | |
parent | 947e47448dcc4e4d7a8b7c42b43acb3435b3ad35 (diff) | |
download | qemu-ff04108a0e36e822519c517bd3bddbc1c7747c18.zip qemu-ff04108a0e36e822519c517bd3bddbc1c7747c18.tar.gz qemu-ff04108a0e36e822519c517bd3bddbc1c7747c18.tar.bz2 |
hmp: Update current monitor only in handle_hmp_command()
The current monitor is updated relatively early in the command handling
code even though only the command handler actually needs it.
The current monitor will become coroutine-local later, so we can only
update it when we know in which coroutine the command will be exectued.
Move it to handle_hmp_command() where this information will be
available.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20201005155855.256490-5-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>
Diffstat (limited to 'monitor/qmp.c')
0 files changed, 0 insertions, 0 deletions