From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43000 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PN7IO-000548-8R for qemu-devel@nongnu.org; Mon, 29 Nov 2010 12:13:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PN7IM-0002uo-KQ for qemu-devel@nongnu.org; Mon, 29 Nov 2010 12:13:44 -0500 Received: from mail.codesourcery.com ([38.113.113.100]:46018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PN7IM-0002uT-Bm for qemu-devel@nongnu.org; Mon, 29 Nov 2010 12:13:42 -0500 From: Paul Brook Subject: Re: [Qemu-devel] RFC: usb redirection over the network, =?iso-8859-1?q?=09interesting_outside_of?= spice? Date: Mon, 29 Nov 2010 17:13:22 +0000 References: <20101129101727.2B64E2B679@zimbra14-e2.priv.proxad.net> <1C05A6E3-D458-43C4-9DF0-4371FC157FF5@free.fr> <4CF3CB17.6000306@redhat.com> In-Reply-To: <4CF3CB17.6000306@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011291713.22233.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: spice-devel@lists.freedesktop.org, =?iso-8859-1?q?Fran=E7ois_Revol?= , Gerd Hoffmann > Hi, > > > Not me at the moment, but unless you tunnel it inside another > > protocol, you'd really want to look at the existing USB-over-IP > > protocols instead of reinventing the wheel: > > http://usbip.sourceforge.net/ (some support in Linux already IIRC) > > (and there are others which I don't recall) > > Doesn't look very useful on a quick glance. > > First: Yes, we wanna embed this into other protocol(s). > > Second, seems usbip is implemented using special drivers in kernel space > for both sides. We will not need special drivers on the qemu side (we > just hook up the devices to the emulated hci). On the client side using > libusb looks alot more sensible than requiring kernel modules. I don't know how good the usp/ip stuff is, but I'd be very reluctant to invent yet annother remote-usb protocol. USB is very hairy, so there's good reason to go with something that has already been tested. IMO the ability to interact with the native kernel support is a feature in its own right. If we end up with a libusb implementation of the usb/ip device end, then that only seems like a good thing - you potentialy get testing coverage from both qemu users and native vhci-hcd users. Paul