summaryrefslogtreecommitdiffstats
path: root/monitor
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2022-04-01 16:39:35 +0200
committerGerd Hoffmann2022-04-27 07:51:01 +0200
commitabea19468e94821d098e546f0cafc9da759bc929 (patch)
tree4e896db7c8df22c6e9c42b142985354d55bd332e /monitor
parentui/vnc: refactor arrays of addresses to SocketAddressList (diff)
downloadqemu-abea19468e94821d098e546f0cafc9da759bc929.tar.gz
qemu-abea19468e94821d098e546f0cafc9da759bc929.tar.xz
qemu-abea19468e94821d098e546f0cafc9da759bc929.zip
qapi/ui: add 'display-update' command for changing listen address
Add possibility to change addresses where VNC server listens for new connections. Prior to 6.0 this functionality was available through 'change' qmp command which was deleted. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@openvz.org> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220401143936.356460-3-vsementsov@openvz.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'monitor')
-rw-r--r--monitor/qmp-cmds.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/monitor/qmp-cmds.c b/monitor/qmp-cmds.c
index 5e7302cbb9..1ebb89f46c 100644
--- a/monitor/qmp-cmds.c
+++ b/monitor/qmp-cmds.c
@@ -346,6 +346,21 @@ void qmp_display_reload(DisplayReloadOptions *arg, Error **errp)
}
}
+void qmp_display_update(DisplayUpdateOptions *arg, Error **errp)
+{
+ switch (arg->type) {
+ case DISPLAY_UPDATE_TYPE_VNC:
+#ifdef CONFIG_VNC
+ vnc_display_update(&arg->u.vnc, errp);
+#else
+ error_setg(errp, "vnc is invalid, missing 'CONFIG_VNC'");
+#endif
+ break;
+ default:
+ abort();
+ }
+}
+
static int qmp_x_query_rdma_foreach(Object *obj, void *opaque)
{
RdmaProvider *rdma;