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
|