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] Q on netfront/netback driver

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Subject: Re: [Xen-devel] Q on netfront/netback driver
From: ravi kerur <rkerur@xxxxxxxxx>
Date: Mon, 1 Feb 2010 11:56:49 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 01 Feb 2010 11:57:18 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=WG7VZhGfgXeJcb+M3GM/7fa0XACrJIJPttNEodEJr6I=; b=Z1ccT3iJFpD6kVhh7+ZnNxVzEvB6OWINjSCXLBgRny2vR/qFRF3Rx4Si8J7z9tQx1L 5JuRkwWhkjZ45uaHZONB0fMMdqjqVY1AidtWW5voQH3uyvWOpdjAe/bICD+J+VkilMnw yRVLCLNj6AcU2AucBIFh7WRiHRExfvU1QceLQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=a1iyInotKDjXpc9zWL/ZQEqBZKnIGpYNgH8dPCbfH3nhMfUFMrwPGWobfGOEerE39c aavVzvgRruSC5vYNAwCfNXVlFkEujbcOhnYDWjytIsETB3Uvm2HnSis8RuJAFGBrME6e fiwOgByrvwjL7iOJ/e0o8ctaAyDAumqO9k8rk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20100201173714.GA26825@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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <dfc283f41001310829g6ab5af10q8eb3335c3d90bfce@xxxxxxxxxxxxxx> <20100201173714.GA26825@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Daniel,

Please see inline [rk]

On Mon, Feb 1, 2010 at 9:37 AM, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> wrote:
On Sun, Jan 31, 2010 at 08:29:04AM -0800, ravi kerur wrote:
> Hello all,
>
> I am trying to understand when and how netback and netfront drivers gets
> instantiated and does netfront exist in domU's?

I would recommend you look in the source code to understand its
handshake mechanism. Or better yet, pick up the 'Definitive Guide to the
Xen hypervisor".

Netfront will exist in DomU's if it is compiled in or as a module
depending on the distro.

[rk] I have gone through code for netfront and netback drivers and have some understanding w.r.t their communication i.e both the drivers watch for "vif" interface creation and go through xenbus state-machine to proceed to connected state and use event-channel, shared-memory rings to communicate later on. I will look into it whether netfront/netback compiled or added as a module.

 In addition, I had follow-up question on creation of "vif" interface(this is what I was referring to when I mentioned about instantiation of netfront/netback), if I were to change this "vif" name to something else, which part of the code should be modified. I have been searching for this and have been futile so far. Inputs appreciated.

Thanks
-RK

>
> I do see the drivers available in following directory in dom0 but nothing in
> domU...
>
>  $ pwd
> /lib/modules/2.6.18-128.1.6.el5.xs5.5.0.496.1012xen/kernel/drivers/xen
>
> $ ls
> pciback  scsiback  scsifront  sfc_netback  sfc_netfront  sfc_netutil
> tpmback
>
> However, I do not see the drivers listed when "lsmod" is executed on dom0 or
> domU.

It might be very well compiled in, at which point it is not a module.
Look in your .config file for NETBACK.
>
> Inputs appreciated.
>
> Thanks
> -RK

> _______________________________________________
> 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