]> xenbits.xensource.com Git - xenclient/toolstack.git/commitdiff
start device model in pv case to have vfb device
authorVincent Hanquez <vincent.hanquez@eu.citrix.com>
Thu, 30 Jul 2009 14:17:28 +0000 (15:17 +0100)
committerVincent Hanquez <vincent.hanquez@eu.citrix.com>
Thu, 30 Jul 2009 14:17:28 +0000 (15:17 +0100)
xenvm/vmact.ml

index 940978d9d30169e5bcb541eeaffdccf3b7b3828c..fc4a446698abd6644a4ca223ba84212cdff8e91e 100644 (file)
@@ -275,8 +275,8 @@ let add_devices xc xs domid state restore =
                Device.Vfb.add ~xc ~xs ~hvm:cfg.hvm domid
        );
 
-       (* add device model *)
-       if cfg.hvm then (
+       if cfg.hvm || cfg.vnc <> (-1) then (
+               (* add device model *)
                let dmpath = "/opt/xensource/libexec/qemu-dm-wrapper" in
                let dmstart = if restore then Device.Dm.restore else Device.Dm.start in