Skip to contentSkip to conversation

XM/XenAPI: Add Blktap Support to XM on Xen API

PATCH New Yosuke Iwamatsu 1 participant 1 message May 12, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 XM/XenAPI: Add Blktap Support to XM on Xen API

Only 'vbd' type devices are generated when creating domains by xm command through xen api.
This patch add 'tap' type devices support to xm on xenapi.

Regards,
-----------------------
Yosuke Iwamatsu
NEC Corporation

XM/XenAPI: Add blktap support when creating domains by xm through Xen API.

tools/python/xen/xm/xenapi_create.py +1 -1
diff -r 810d8c3ac992 tools/python/xen/xm/xenapi_create.py
@@ -509,7 +509,7 @@ class sxp2xml:
                    if len(child) > 0 and child[0] == "device"]
                    
         vbds_sxp = map(lambda x: x[1], [device for device in devices
-                                        if device[1][0] == "vbd"])
+                                        if device[1][0] in ("vbd", "tap")])
 
         vifs_sxp = map(lambda x: x[1], [device for device in devices
                                         if device[1][0] == "vif"])

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