Skip to contentSkip to conversation

XM: Set device_model Option Value default to None

PATCH New Yosuke Iwamatsu 1 participant 1 message Jun 9, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 XM: Set device_model Option Value default to None

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

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.

tools/python/xen/xm/create.py +1 -1
diff -r b320cfe1f10f tools/python/xen/xm/create.py
@@ -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',

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