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

Re: [Xen-devel] [PATCH] Prevent frontend network accelerator plugin load

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] Prevent frontend network accelerator plugin loading in dom0
From: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>
Date: Fri, 08 Feb 2008 16:47:25 +0000
Delivery-date: Fri, 08 Feb 2008 08:47:54 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1202481026.4147.27.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <1202481026.4147.27.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2008-02-08 at 14:30 +0000, Kieran Mansley wrote:
> Generate error if frontend plugin tries to connect on dom0

Forgot the:

Signed-off-by: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>

> diff -r bb5ece87256b drivers/xen/netfront/accel.c
> --- a/drivers/xen/netfront/accel.c
> +++ b/drivers/xen/netfront/accel.c
> @@ -446,6 +446,9 @@ int netfront_accelerator_loaded(int vers
>  {
>       struct netfront_accelerator *accelerator;
>  
> +     if (is_initial_xendomain())
> +             return -EINVAL;
> +
>       if (version != NETFRONT_ACCEL_VERSION) {
>               if (version > NETFRONT_ACCEL_VERSION) {
>                       /* Caller has higher version number, leave it
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


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