WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH]enable mulitple NICs for vmx domain
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH]enable mulitple NICs for vmx domain, Ling, Xiaofeng <=