From: ravi kerur Subject: Re: Q on netfront/netback driver Date: Mon, 1 Feb 2010 11:56:49 -0800 Message-ID: References: <20100201173714.GA26825@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0473347276==" Return-path: In-Reply-To: <20100201173714.GA26825@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0473347276== Content-Type: multipart/alternative; boundary=0016367f94dacc8217047e8f6293 --0016367f94dacc8217047e8f6293 Content-Type: text/plain; charset=ISO-8859-1 Hi Daniel, Please see inline [rk] On Mon, Feb 1, 2010 at 9:37 AM, Konrad Rzeszutek Wilk < konrad.wilk@oracle.com> 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@lists.xensource.com > > http://lists.xensource.com/xen-devel > > --0016367f94dacc8217047e8f6293 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Daniel,

Please see inline [rk]

= On Mon, Feb 1, 2010 at 9:37 AM, Konrad Rzeszutek Wilk <= ;konrad.wilk@oracle.com> 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 ge= ts
> 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 th= e
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 the= ir communication i.e both the drivers watch for "vif" interface c= reation and go through xenbus state-machine to proceed to connected state a= nd use event-channel, shared-memory rings to communicate later on. I will l= ook into it whether netfront/netback compiled or added as a module.

=A0In addition, I had follow-up question on creation of "vif"= interface(this is what I was referring to when I mentioned about instantia= tion 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 sea= rching for this and have been futile so far. Inputs appreciated.

Thanks
-RK

>
> I do see the drivers available in following directory in dom0 but noth= ing in
> domU...
>
> =A0$ pwd
> /lib/modules/2.6.18-128.1.6.el5.xs5.5.0.496.1012xen/kernel/drivers/xen=
>
> $ ls
> pciback =A0scsiback =A0scsifront =A0sfc_netback =A0sfc_netfront =A0sfc= _netutil
> tpmback
>
> However, I do not see the drivers listed when "lsmod" is exe= cuted 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@lists.xenso= urce.com
> htt= p://lists.xensource.com/xen-devel


--0016367f94dacc8217047e8f6293-- --===============0473347276== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0473347276==--