]> xenbits.xensource.com Git - xenclient/toolstack.git/commitdiff
fix vnc specification in qemu call to include the bind address
authorVincent Hanquez <vincent.hanquez@eu.citrix.com>
Thu, 30 Jul 2009 18:11:53 +0000 (19:11 +0100)
committerVincent Hanquez <vincent.hanquez@eu.citrix.com>
Thu, 30 Jul 2009 18:11:53 +0000 (19:11 +0100)
xenops/device.ml
xenops/device.mli
xenvm/vmact.ml

index fbb22147d5e5b536f6940235c35d8d2802cbf1d0..deb7cba38c484168104902de71e1975421338e5b 100644 (file)
@@ -1085,7 +1085,7 @@ module Dm = struct
 
 type disp_opt =
        | NONE
-       | VNC of bool * int * string (* auto-allocate, port if previous false, keymap *)
+       | VNC of bool * string * int * string (* auto-allocate, bind address could be empty, port if auto-allocate false, keymap *)
        | SDL of string (* X11 display *)
 
 type info = {
@@ -1187,10 +1187,10 @@ let __start ~xs ~dmpath ~restore ?(timeout=qemu_dm_ready_timeout) info domid =
                match info.disp with
                | NONE                     -> [], false
                | SDL (x11name)            -> [], false
-               | VNC (auto, port, keymap) ->
+               | VNC (auto, bindaddr, port, keymap) ->
                        if auto
                        then [ "-vncunused"; "-k"; keymap ], true
-                       else [ "-vnc"; string_of_int port; "-k"; keymap ], true
+                       else [ "-vnc"; bindaddr ^ ":" ^ string_of_int port; "-k"; keymap ], true
                in
        let sound_options =
                match info.sound with
index d41287ec9ea23724ed8c20833a76156ce1e72d5f..461496caab722477b064b40a343ab6306ceccddc 100644 (file)
@@ -146,7 +146,7 @@ module Dm :
 sig
        type disp_opt =
                | NONE
-               | VNC of bool * int * string (* auto-allocate, port if previous false, keymap *)
+               | VNC of bool * string * int * string (* auto-allocate, bind address, port it !autoallocate, keymap *)
                | SDL of string (* X11 display *)
 
        type info = {
index 9dd769b903d386823de590aa2c247a2083b0f495..786c514e44dcf916495458327831adfd58882480 100644 (file)
@@ -188,8 +188,8 @@ let dm_info_of_cfg cfg =
        let disp =
                match cfg.vnc with
                | (-1) -> Device.Dm.NONE
-               | 0    -> Device.Dm.VNC (true, 0, cfg.vnc_keymap)
-               | _    -> Device.Dm.VNC (false, cfg.vnc, cfg.vnc_keymap)
+               | 0    -> Device.Dm.VNC (true, "", 0, cfg.vnc_keymap)
+               | _    -> Device.Dm.VNC (false, "", cfg.vnc, cfg.vnc_keymap)
                in
        {
                Device.Dm.hvm = cfg.hvm;