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 8/10] Add support for netfront/netback acceleration d

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 8/10] Add support for netfront/netback acceleration drivers
From: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>
Date: Fri, 01 Dec 2006 17:20:21 +0000
Delivery-date: Fri, 01 Dec 2006 09:24:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
This set of patches adds the support for acceleration plugins to the
netfront/netback drivers.  These plugins are intended to support
virtualisable network hardware that can be directly accessed from the
guest, bypassing dom0.

This is in response to the RFC we posted to xen-devel with an outline
of our approach at the end of September.

To follow will be another set of patches to provide our hardware
specific drivers and plugins.  The above set are all hardware-agnostic
and so of wider relevance.

Signed-off-by: kmansley@xxxxxxxxxxxxxx

The following describes each of the patches that are attached.   

accel_vif_xend
 - Add support to xend to allow the "accel" option to be specified in
 the configuraiton file so that users can define which network
 interfaces should use which accelerated network plugin modules.

Add accel option to vif xend config

diff -r e062e7f46ea0 tools/python/xen/xend/server/netif.py
--- a/tools/python/xen/xend/server/netif.py     Fri Dec 01 11:41:59 2006
+0000
+++ b/tools/python/xen/xend/server/netif.py     Fri Dec 01 15:42:14 2006
+0000
@@ -147,6 +147,7 @@ class NetifController(DevController):
         rate    = config.get('rate')
         uuid    = config.get('uuid')
         ipaddr  = config.get('ip')
+        accel   = config.get('accel')
 
         devid = self.allocateDeviceID()
 
@@ -173,6 +174,8 @@ class NetifController(DevController):
             back['rate'] = parseRate(rate)
         if uuid:
             back['uuid'] = uuid
+        if accel:
+            back['feature-accel'] = accel
 
         return (devid, back, front)
 
diff -r e062e7f46ea0 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Fri Dec 01 11:41:59 2006 +0000
+++ b/tools/python/xen/xm/create.py     Fri Dec 01 11:42:02 2006 +0000
@@ -652,7 +652,7 @@ def configure_vifs(config_devs, vals):
 
         def f(k):
             if k not in ['backend', 'bridge', 'ip', 'mac', 'script',
'type',
-                         'vifname', 'rate', 'model']:
+                         'vifname', 'rate', 'model', 'accel']:
                 err('Invalid vif option: ' + k)
 
             config_vif.append([k, d[k]])



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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 8/10] Add support for netfront/netback acceleration drivers, Kieran Mansley <=