hmp: remove "change vnc TARGET" command
commitcfb5387a1de2acda23fb5c97d2378b9e7ddf8025
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Jan 2021 14:42:33 +0000 (20 15:42 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 23 Jan 2021 20:55:07 +0000 (23 15:55 -0500)
tree253a765fff8fd73499f80f20e36f26184a76e870
parent3e3267a9d799788338e7e8120f289c3924fc4e47
hmp: remove "change vnc TARGET" command

The HMP command \"change vnc TARGET\" is messy:

- it takes an ugly shortcut to determine if the option has an "id",
with incorrect results if "id=" is not preceded by an unescaped
comma.

- it deletes the existing QemuOpts and does not try to rollback
if the parsing fails (which is not causing problems, but only due to
how VNC options are parsed)

- because it uses the same parsing function as "-vnc", it forces
the latter to not support "-vnc help".

On top of this, it uses a deprecated QMP command, thus getting in
the way of removing the QMP command.  Since the usecase for the
command is not clear, just remove it and send "change vnc password"
directly to the QMP "change-vnc-password" command.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20210120144235.345983-2-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
docs/system/removed-features.rst
hmp-commands.hx
monitor/hmp-cmds.c