From mboxrd@z Thu Jan 1 00:00:00 1970 From: ravi kerur Subject: Re: Q on ioctl support in netfront/netback Date: Mon, 15 Feb 2010 07:54:02 -0800 Message-ID: References: <4B791671.4050902@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0782263286==" Return-path: In-Reply-To: <4B791671.4050902@citrix.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: Paul Durrant Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============0782263286== Content-Type: multipart/alternative; boundary=0016363b82f04eea9e047fa5a035 --0016363b82f04eea9e047fa5a035 Content-Type: text/plain; charset=ISO-8859-1 Paul, Registers are not in netback, they are h/w registers on NIC and the driver supports reads/writes via ioctl calls. Driver is in dom0 and application which reads/writes registers is run in domU. -RK On Mon, Feb 15, 2010 at 1:40 AM, Paul Durrant wrote: > ravi kerur wrote: > >> >> Our network driver support ioctl calls from applications for register >> reads/writes. I am wondering can ioctl calls be supported from domU to dom0? >> i.e call flow will be >> >> application invokes ioctl ---> netfront ioctl ----->via xenbus ------> >> netback ioctl ------> to actual driver in dom0 >> >> with the return path in similar fashion. >> >> > I'm wondering precisely what register in netback you wish to access? > > -- > =============================== > Paul Durrant, Software Engineer > > Citrix Systems (R&D) Ltd. > First Floor, Building 101 > Cambridge Science Park > Milton Road > Cambridge CB4 0FY > United Kingdom > =============================== > --0016363b82f04eea9e047fa5a035 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Paul,

Registers are not in netback, they are h/w registers on NIC an= d the driver supports reads/writes via ioctl calls. Driver is in dom0 and a= pplication which reads/writes registers is run in domU.

-RK

On Mon, Feb 15, 2010 at 1:40 AM, Paul Durrant <paul.durrant= @citrix.com> wrote:
ravi kerur wrote:

Our network driver support ioctl calls from applications for register reads= /writes. I am wondering can ioctl calls be supported from domU to dom0? i.e= call flow will be

application invokes ioctl ---> netfront ioctl ----->via xenbus ------= > netback ioctl ------> to actual driver in dom0

with the return path in similar fashion.


I'm wondering precisely what register in netback you wish to access?
--
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D
Paul Durrant, Software Engineer

Citrix Systems (R&D) Ltd.
First Floor, Building 101
Cambridge Science Park
Milton Road
Cambridge CB4 0FY
United Kingdom
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D

--0016363b82f04eea9e047fa5a035-- --===============0782263286== 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 --===============0782263286==--