Skip to content

VNC-related HMP/QMP fixes

Stefan Reiter qemu-devel 4 versions – Applied

Status from this message: Queued, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest4 patches 23 repliesApplied
  2. v65 patches 7 repliesSuperseded
  3. v54 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v42 patches8 repliesSuperseded

Changes in v7 from the cover letter

* remove g_strdup and g_free, use strings directly
* squash in last patch

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/4monitor/hmp: add support for flag argument with valuemonitor/hmp.c monitor/monitor-internal.h+20 -22 replies
2/4qapi/monitor: refactor set/expire_password with enumsmonitor/hmp-cmds.c monitor/qmp-cmds.c qapi/ui.json+74 -292 replies
3/4qapi/monitor: allow VNC display id in set/expire_passwordhmp-commands.hx monitor/hmp-cmds.c monitor/qmp-cmds.c +1 more+148 -692 replies
4/4qapi/monitor: only allow 'keep' SetPasswordAction for VNC and deprecatedocs/about/deprecated.rst monitor/qmp-cmds.c qapi/ui.json+26 -61 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarkus ArmbrusterDr. David Alan GilbertGerd HoffmannEric Blake
SeriesA-b
1/4R-b R-b
2/4R-b
3/4R-b A-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v7 thread

Cover letter [PATCH v7 0/4] VNC-related HMP/QMP fixes

Since the removal of the generic 'qmp_change' command, one can no longer replace the 'default' VNC display listen address at runtime (AFAIK). For our users who need to set up a secondary VNC access port, this means configuring a second VNC display (in addition to our standard one for web-access), but it turns out one cannot set a password on this second display at the moment, as the 'set_password' call only operates on the 'default' display.

Additionally, using secret objects, the password is only read once at startup. This could be considered a bug too, but is not touched in this series and left for a later date.

v6 -> v7:
* remove g_strdup and g_free, use strings directly
* squash in last patch

v5 -> v6:
* consider feedback from Markus' review, mainly:
* fix crash bug in patch 1 (sorry, artifact of patch-splitting)
* rely on '!has_param => param == NULL' to shorten code
* add note to 'docs/about/deprecated.rst' and touch up comments a bit
* go back to g_free instead of qapi_free_* since the latter apparently tries to free the passed in pointer which lives on the stack...
* fix bug in HMP parsing (see patch 1)

v4 -> v5:
* add comment to patch 1 in "monitor-internal.h"
* use qapi_free_SetPasswordOptions and friends, don't leak strdups
* split QAPI change into 3 seperate patches

v3 -> v4:
* drop previously patch 1, this was fixed here instead:
https://lists.gnu.org/archive/html/qemu-devel/2021-09/msg02529.html
* patch 1: add Eric's R-b
* patch 2: remove if-assignment, use 'deprecated' feature in schema

v2 -> v3:
* refactor QMP schema for set/expire_password as suggested by Eric Blake and Markus Armbruster

v1 -> v2:
* add Marc-André's R-b on patch 1
* use '-d' flag as suggested by Eric Blake and Gerd Hoffmann
* I didn't see a way to do this yet, so I added a "flags with values" arg type

Stefan Reiter (4):
monitor/hmp: add support for flag argument with value qapi/monitor: refactor set/expire_password with enums qapi/monitor: allow VNC display id in set/expire_password qapi/monitor: only allow 'keep' SetPasswordAction for VNC and
deprecate

 docs/about/deprecated.rst  |   6 ++
 hmp-commands.hx            |  24 +++---
 monitor/hmp-cmds.c         |  48 +++++++++++-
 monitor/hmp.c              |  19 ++++-
 monitor/monitor-internal.h |   3 +-
 monitor/qmp-cmds.c         |  54 ++++---------
 qapi/ui.json               | 156 ++++++++++++++++++++++++++++++++-----
 7 files changed, 236 insertions(+), 74 deletions(-)
Signature · 1 line
2.30.2