libxl: Store VNC passwd in xenstore with QEMU upstream.
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 8 Jun 2012 15:09:00 +0000 (16:09 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Fri, 8 Jun 2012 15:09:00 +0000 (16:09 +0100)
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_qmp.c

index ce9ab758a80f231ab063974284e731b1d375bb35..e33b130f009d9bc29a7040b50c78af3f8789d0a4 100644 (file)
@@ -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);