From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Re: Re: pvusb drivers for pvops 2.6.32.x kernel Date: Thu, 6 Jan 2011 20:55:53 +0200 Message-ID: <20110106185553.GP2754@reaktio.net> References: <20110103114133.GI2754@reaktio.net> <1294133619.3831.29.camel@zakaz.uk.xensource.com> <20110104095224.GR2754@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline 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: Nathanael Rensen Cc: Jeremy Fitzhardinge , "xen-devel@lists.xensource.com" , Ian Campbell List-Id: xen-devel@lists.xenproject.org On Wed, Jan 05, 2011 at 09:07:49PM +0800, Nathanael Rensen wrote: > On Tue, Jan 04, 2011 at 09:33:39AM +0000, Ian Campbell wrote: > > > > I think the correct path for this functionality is to first get it > > accepted into the upstream kernel by working with the USB subsystem > > maintainer+list, fixing the issue arising from their review etc. >=20 > I'm happy to have a shot at that. I don't imagine it will be a quick > process so in the meantime I think there is value in supporting pvusb > in stable/2.6.32.x to encourage people to test and identify issues, > and also to make it easier to track the maintenance. >=20 Yeah, at least earlier Jeremy said he's happy to take most patches for xe= n/stable-2.6.32.x :) > > The stuff necessary to get the frontend upstream has been upstream fo= r > > ages. For the backend basic dom0 boot support is in 2.6.37 and the > > generic scaffolding for backends is currently in linux-next (via > > Konrad's tree) and is intended to be in the next merge window. > > > > I think the backend just looks like a regular USB driver to the host > > system so it probably belongs in drivers/usb//xen-usbback/ > > and not drivers/xen. (I'm not sure what the should be, > > perhaps "misc"). >=20 > I agree that the frontend driver looks like a regular USB host > controller driver and belongs in drivers/usb/host. From the dom0 > perspective the backend driver is a consumer of USB services rather > than a provider so my inclination is that the proper place for the > backend is drivers/xen along with blkback, netback and pciback. Much > the same way as I would expect to find a USB TV tuner driver in > drivers/media rather than drivers/usb. I would prefer to remain > consistent with the model established by the block, net and pci > drivers, but I am happy to adopt whatever convention is acceptable to > upstream. >=20 Something I noticed about the pvusb backend.. Should the name of the driver be xen-usbbk instead of just usbbk ? The other backend driver modules seem to have xen- prefix. -- Pasi > Nathanael >=20 > > Ian. >=20 > >> > ----- Forwarded message from Nathanael Rensen ----- > >> > > >> > From: Nathanael Rensen > >> > To: Pasi K=E4rkk=E4inen > >> > Cc: n_iwamatsu@jp.fujitsu.com > >> > Date: Mon, 3 Jan 2011 19:32:23 +0800 > >> > Subject: Re: pvusb for pvops > >> > > >> > On 1 January 2011 23:19, Nathanael Rensen wrote: > >> > > On 1 January 2011 22:43, Pasi K=E4rkk=E4inen wrot= e: > >> > >> On Sat, Jan 01, 2011 at 03:10:58AM +0800, Nathanael Rensen wrot= e: > >> > >>> Hi Noboru, > >> > >>> > >> > >>> In case it is helpful ... > >> > >>> > >> > >>> I've attached a diff that adds the pvusb drivers to the debian= squeeze > >> > >>> 2.6.32 pvops kernel. > >> > >>> So far I've only tested with a USB drive on xen 4.0.1 between = debian > >> > >>> squeeze pvops dom0 and > >> > >>> debian squeeze pvops domU. > >> > >>> > >> > >>> The diff is based on the SLES SP1 diffs posted here: > >> > >>> =A0 http://code.google.com/p/gentoo-xen-kernel/downloads/list > >> > >>> It almost applies cleanly to xen/stable-2.6.32.x except for th= e patch to > >> > >>> include/xen/interface/io/ring.h which is not required for xen/= stable-2.6.32.x. > >> > >>> I haven't tested the xen/stable-2.6.32.x kernel though. > >> > >>> > >> > >> > >> > >> Great, thanks! > >> > >> Is it OK to forward this email to xen-devel mailinglist? > >> > >> > >> > >> Btw did you check from novell's kernel git tree if there > >> > >> has been fixes to the pvusb code after that patch on > >> > >> code.google.com was posted? > >> > >> > >> > >> -- Pasi > >> > > > >> > > For sure, you're welcome to forward it, but maybe hold off a bit= because > >> > > I've refactored the pvusb frontend code to be consistent with th= e way the > >> > > other frontend drivers are within the pvops tree. I'll also take= a look at > >> > > Novell's tree to check for updates. > >> > > > >> > > I'll do some testing on a kernel built from the pvops stable-2.6= .32.x tree > >> > > and send an updated diff against that tree in the next couple of= days. > >> > > > >> > > Nathanael > >> > > > >> > > >> > I've attached an updated diff against the pvops xen/stable-2.6.32.= x tree. > >> > I've tested by attaching an af9015 USB TV tuner to a pvops domu fr= om > >> > a pvops dom0 and recording a few hours of TV. > >> > > >> > I also tried to attach various USB devices to a WinXP domu with GP= LPV > >> > drivers, but the domu kept crashing. That needs more investigation= , but > >> > I suspect a problem with the GPLPV drivers. I'm keen for that to b= e fixed, > >> > but I don't have time immediately to dig into it. > >> > > >> > I took a look at the patches at > >> > http://gitorious.org/opensuse/kernel-source/trees/SLE11-SP1/patche= s.xen > >> > and as far as I can tell, everything that relates to pvusb is incl= uded in the > >> > attached patch. > >> > > >> > Nathanael > >> > > >> > > >> > > >> > ----- End forwarded message ----- > >> > >> > >