From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yosuke Iwamatsu Subject: [PATCH] XM: Set device_model Option Value default to None Date: Mon, 09 Jun 2008 15:46:42 +0900 Message-ID: <484CD1D2.5070608@ab.jp.nec.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040104030509020109060305" 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. --------------040104030509020109060305 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Set the device_model option value default to None. If device_model is set to '', xend will fail to execute the device model. If device_model is set to None, xend will detect it and set a sensible qemu-dm path instead. Regards, ----------------------- Yosuke Iwamatsu NEC Corporation --------------040104030509020109060305 Content-Type: all/allfiles; name="xm_device_model.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xm_device_model.patch" xm: Set device_model option value default to None. If device_model is set to '', xend will fail to execute the device model. If None, xend will detect it and set a sensible qemu-dm path instead. Signed-off-by: Yosuke Iwamatsu diff -r b320cfe1f10f tools/python/xen/xm/create.py --- a/tools/python/xen/xm/create.py Thu Jun 05 13:04:07 2008 +0100 +++ b/tools/python/xen/xm/create.py Mon Jun 09 15:07:36 2008 +0900 @@ -424,7 +424,7 @@ gopts.var('nfs_root', val="PATH", use="Set the path of the root NFS directory.") gopts.var('device_model', val='FILE', - fn=set_value, default='', + fn=set_value, default=None, use="Path to device model program.") gopts.var('fda', val='FILE', --------------040104030509020109060305 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 --------------040104030509020109060305--