Skip to contentSkip to conversation

Add 'type vnc' to vfb device sexpr for HVM guest

PATCH New Jim Fehlig 1 participant 1 message Sep 10, 2007

lore
Share & tools
lore

Jim Fehlig

author
#0 lore raw

PATCH 1/1 Add 'type vnc' to vfb device sexpr for HVM guest

This patch adds 'type vnc' to vfb device sexpr for HVM guests. PV guests already contain this entry in sexpr, e.g.

    (device
        (vfb
            (vncunused 1)
            ...
           (type vnc)
            ...
        )
    )

Some tools, such as libvirt, look for device/vfb/type in sexpr before publishing VNC port. More importantly, this patch provides consistency in vfb device sexpr between HVM and PV guests.

Regards,
Jim

tools/python/xen/xend/XendConfig.py +1 -0
diff -r 9071521d4864 tools/python/xen/xend/XendConfig.py
@@ -752,6 +752,7 @@ class XendConfig(dict):
 
             if not has_rfb:
                 dev_config = ['vfb']
+                dev_config.append(['type', 'vnc'])
                 # copy VNC related params from platform config to vfb dev conf
                 for key in ['vncpasswd', 'vncunused', 'vncdisplay',
                             'vnclisten']:

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel