Ling, Xiaofeng
2005-Dec-03 15:10 UTC
[Xen-devel] [PATCH]enable mulitple NICs for vmx domain
# HG changeset patch # User Xiaofeng Ling <xiaofeng.ling@intel.com> # Node ID ee89df90d516fc2a29e8c4837465deea38ca5902 # Parent 4cd9ae16b3204b8ba82c9b351e1e0e0fdcbfd856 Enable multiple NICs for vmx domain by configuration file Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com> diff -r 4cd9ae16b320 -r ee89df90d516 tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Sat Dec 3 22:28:03 2005 +0800 +++ b/tools/python/xen/xend/image.py Sat Dec 3 22:58:58 2005 +0800 @@ -238,7 +238,9 @@ # xm config file def parseDeviceModelArgs(self, imageConfig, deviceConfig): dmargs = [ ''cdrom'', ''boot'', ''fda'', ''fdb'', ''ne2000'', - ''localtime'', ''serial'', ''stdvga'', ''isa'', ''vcpus'' ] + ''localtime'', ''serial'', ''stdvga'', ''isa'', ''vcpus'', + ''nics'' + ] ret = [] for a in dmargs: v = sxp.child_value(imageConfig, a) diff -r 4cd9ae16b320 -r ee89df90d516 tools/python/xen/xm/create.py --- a/tools/python/xen/xm/create.py Sat Dec 3 22:28:03 2005 +0800 +++ b/tools/python/xen/xm/create.py Sat Dec 3 22:58:58 2005 +0800 @@ -539,7 +539,8 @@ """ args = [ ''device_model'', ''vcpus'', ''cdrom'', ''boot'', ''fda'', ''fdb'', ''localtime'', ''serial'', ''stdvga'', ''isa'', ''nographic'', - ''vnc'', ''vncviewer'', ''sdl'', ''display'', ''ne2000'', ''lapic''] + ''vnc'', ''vncviewer'', ''sdl'', ''display'', ''ne2000'', ''lapic'', + ''nics''] for a in args: if (vals.__dict__[a]): config_image.append([a, vals.__dict__[a]]) ------------------- Ling Xiaofeng(Daniel) Open Source Technology Center Intel China Software Center iNet: 8-752-1243 8621-52574545-1243(O) xfling@users.sourceforge.net _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel