xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libxl: Store VNC passwd in xenstore with QEMU upstream.
@ 2012-05-21 18:24 Anthony PERARD
  2012-06-08 15:16 ` Ian Jackson
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony PERARD @ 2012-05-21 18:24 UTC (permalink / raw)
  To: Xen Devel; +Cc: Anthony PERARD

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 <anthony.perard@citrix.com>

---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-08 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-21 18:24 [PATCH] libxl: Store VNC passwd in xenstore with QEMU upstream Anthony PERARD
2012-06-08 15:16 ` Ian Jackson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).