[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH]enable mulitple NICs for vmx domain


  • To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Ling, Xiaofeng" <xiaofeng.ling@xxxxxxxxx>
  • Date: Sat, 3 Dec 2005 23:10:57 +0800
  • Delivery-date: Sat, 03 Dec 2005 15:11:01 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcX4GygiK7CP3/9SQgSyv/X48EZknA==
  • Thread-topic: [PATCH]enable mulitple NICs for vmx domain

# HG changeset patch
# User Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
# Node ID ee89df90d516fc2a29e8c4837465deea38ca5902
# Parent  4cd9ae16b3204b8ba82c9b351e1e0e0fdcbfd856
Enable multiple NICs for vmx domain by configuration file

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxxxx

Attachment: mul-nics.patch
Description: mul-nics.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.