From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony PERARD Subject: [PATCH] libxl: Store VNC passwd in xenstore with QEMU upstream. Date: Mon, 21 May 2012 19:24:14 +0100 Message-ID: <1337624654-7044-1-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen Devel Cc: Anthony PERARD List-Id: xen-devel@lists.xenproject.org This patch stores the VNC password in xenstore after it has been sent to QEMU. This will be usefull with the vncviewer command with --autopass. Signed-off-by: Anthony PERARD --- tools/libxl/libxl_qmp.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c index ce9ab75..e33b130 100644 --- a/tools/libxl/libxl_qmp.c +++ b/tools/libxl/libxl_qmp.c @@ -928,6 +928,7 @@ int libxl__qmp_initializations(libxl__gc *gc, uint32_t domid, ret = libxl__qmp_query_serial(qmp); if (!ret && vnc && vnc->passwd) { ret = qmp_change(gc, qmp, "vnc", "password", vnc->passwd); + qmp_write_domain_console_item(gc, domid, "vnc-pass", vnc->passwd); } if (!ret) { ret = qmp_query_vnc(qmp); -- Anthony PERARD