From: Daniel Stodden Subject: Re: Q on ioctl support in netfront/netback Date: Tue, 16 Feb 2010 19:26:10 -0800 Message-ID: <1266377170.15135.13710.camel@agari.van.xensource.com> References: <4B791671.4050902@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: ravi kerur Cc: Paul Durrant , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2010-02-15 at 10:54 -0500, ravi kerur wrote: > 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. Why do you want to map or preserve some register interface? Is this some sort of hardware multiplex? As Konrad pointed out, in that case a PV driver is probably the wrong approach altogether. If what you want is just a bunch of extended control plane attributes, rather consider mapping them to xenstore. That's slightly more asynchronous and probably not a great option if you need a synchronous interface. Especially if you need individual return values, not just a bunch of fields to write into. If the latter case, next option would be some dedicated shared memory structure. But it's hard to imagine something like that to make sense. :} Daniel