From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=45293 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNeof-0007GI-A6 for qemu-devel@nongnu.org; Wed, 01 Dec 2010 00:01:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNPBn-0007oR-2K for qemu-devel@nongnu.org; Tue, 30 Nov 2010 07:20:11 -0500 Received: from mx1.redhat.com ([209.132.183.28]:4461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNPBm-0007nG-RW for qemu-devel@nongnu.org; Tue, 30 Nov 2010 07:20:07 -0500 Message-ID: <4CF4ECAB.9010602@redhat.com> Date: Tue, 30 Nov 2010 13:23:07 +0100 From: Hans de Goede MIME-Version: 1.0 Subject: Re: [Spice-devel] [Qemu-devel] RFC: usb redirection over the network, interesting outside of spice? References: <29465206.14.1291043417418.JavaMail.root@zimbra.grelot.net> <4CF3D63A.60903@redhat.com> <4CF3E797.7070401@codemonkey.ws> <4CF4DF80.2090905@redhat.com> <20101130113230.GD12522@playa.tlv.redhat.com> In-Reply-To: <20101130113230.GD12522@playa.tlv.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , qemu-devel@nongnu.org, spice-devel@lists.freedesktop.org Hi, On 11/30/2010 12:32 PM, Alon Levy wrote: > On Tue, Nov 30, 2010 at 12:26:56PM +0100, Hans de Goede wrote: >> Then there would be multiple ways to add a virtual usb device using usb-net-redir.c to >> the virtual machine. One way of adding such a device could be starting a tcp/ip server >> on a machine with an interesting usb device, say 192.168.1.100:2222 and then in >> the monitor type: >> usb_add net:192.168.1.100:2222:[vid]:[pid] >> or: >> usb_add net:192.168.1.100:2222:[busnr]:[addr] > > Wouldn't you want to add a usb_add net:host:port that would just export anything it has > decided to export? or is this just the next step? > The idea is one channel (one socket in this case), one device. This way the same server on the usb-host could export multiple devices, using one client connection per device. The server of course should in the end have some sort of security wrt which devices the vm-host can connect to and which not. Regards, Hans