From: Kieran Mansley Subject: [PATCH 4/10] Add support for netfront/netback acceleration drivers Date: Fri, 01 Dec 2006 17:20:07 +0000 Message-ID: <1164993607.792.53.camel@moonstone.uk.level5networks.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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@solarflare.com The following describes each of the patches that are attached. xenbus_strstate_export - Allow access to xenbus_strstate from modules. This is currently used in code that could theoretically be compiled as a module, but in particular it's of use to the new network accelerator plugin modules. Export xenbus strstate for use by modules diff -r 0c4b8115ffeb linux-2.6-xen- sparse/drivers/xen/xenbus/xenbus_client.c --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c Tue Oct 31 13:43:39 2006 +0000 +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_client.c Tue Oct 31 13:45:37 2006 +0000 @@ -54,6 +54,7 @@ char *xenbus_strstate(enum xenbus_state }; return (state < ARRAY_SIZE(name)) ? name[state] : "INVALID"; } +EXPORT_SYMBOL_GPL(xenbus_strstate); int xenbus_watch_path(struct xenbus_device *dev, const char *path, struct xenbus_watch *watch,