From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yosuke Iwamatsu Subject: [PATCH] XM/XenAPI: Add Blktap Support to XM on Xen API Date: Mon, 12 May 2008 19:21:31 +0900 Message-ID: <48281A2B.6050701@ab.jp.nec.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010500040109040106000705" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------010500040109040106000705 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit 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 --------------010500040109040106000705 Content-Type: all/allfiles; name="blktap_xm_xenapi.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="blktap_xm_xenapi.patch" XM/XenAPI: Add blktap support when creating domains by xm through Xen API. Signed-off-by: Yosuke Iwamatsu diff -r 810d8c3ac992 tools/python/xen/xm/xenapi_create.py --- a/tools/python/xen/xm/xenapi_create.py Thu May 08 16:58:33 2008 +0100 +++ b/tools/python/xen/xm/xenapi_create.py Mon May 12 15:41:40 2008 +0900 @@ -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"]) --------------010500040109040106000705 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------010500040109040106000705--