]> xenbits.xensource.com Git - xenclient/toolstack.git/commitdiff
add a vfb device on pv case if vnc has been specified
authorVincent Hanquez <vincent.hanquez@eu.citrix.com>
Thu, 30 Jul 2009 14:16:36 +0000 (15:16 +0100)
committerVincent Hanquez <vincent.hanquez@eu.citrix.com>
Thu, 30 Jul 2009 14:16:36 +0000 (15:16 +0100)
xenvm/vmact.ml

index 2fdde5d2febce9c97e987cc92d0146025209ba57..6296bb202ed7c979e51cafc277060c7d6f92bcf3 100644 (file)
@@ -271,6 +271,10 @@ let add_devices xc xs domid state restore =
                Device.PCI.add ~xc ~xs ~hvm:cfg.hvm ~msitranslate ~pci_power_mgmt devs domid devid
        ) pcis;
 
+       if (not cfg.hvm) && cfg.vnc <> (-1) then (
+               Device.Vfb.add ~xc ~xs ~hvm:cfg.hvm domid
+       );
+
        (* add device model *)
        if cfg.hvm then (
                let dmpath = "/opt/xensource/libexec/qemu-dm-wrapper" in