From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvhM0-0005Va-EC for qemu-devel@nongnu.org; Wed, 16 Jan 2013 23:45:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvhLz-0008Mv-A3 for qemu-devel@nongnu.org; Wed, 16 Jan 2013 23:45:28 -0500 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:42473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvhLy-0008MV-M9 for qemu-devel@nongnu.org; Wed, 16 Jan 2013 23:45:27 -0500 Received: from /spool/local by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 17 Jan 2013 10:13:22 +0530 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id E4E63E004C for ; Thu, 17 Jan 2013 10:15:38 +0530 (IST) Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r0H4jEEo41680932 for ; Thu, 17 Jan 2013 10:15:15 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r0H4jG8m006465 for ; Thu, 17 Jan 2013 15:45:16 +1100 Message-ID: <50F781DA.3000402@linux.vnet.ibm.com> Date: Thu, 17 Jan 2013 12:45:14 +0800 From: Lei Li MIME-Version: 1.0 References: <50F6543F.4060502@linux.vnet.ibm.com> <50F65D15.3030803@redhat.com> In-Reply-To: <50F65D15.3030803@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC] Add serial number to usbdevice when passthrough to VM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel On 01/16/2013 03:56 PM, Gerd Hoffmann wrote: > On 01/16/13 08:18, Lei Li wrote: >> Hi guys, >> >> Currently we can passthrough the host USB device to the virtual >> machine. This is done like: >> >> –usbdevice host:1234:5678, where 1234 is vendor id, 5678 is product >> id. >> >> But there is a problem. If there are two identical USB devices, >> where the vendor id and the product id is the same. It's not possible >> to direct one USB device to VM1 and the second USB device to VM2. > You can assign devices by physical port. > See docs/usb2.txt Yes, I have read this doc, I know it also support hostbus+hostport or hostbus+hostaddr combinations. But as the backinfo's request, should we extented the usbdevice parameter like: --usbdevice host:[:[:]? What happened if upper app try to passthough those identical USB devices by vendorid+productid combination? AFAIK, Virtualbox support to distingish those device by adding this third parameter 'Serial Number' for vendorid+productid combination. > cheers, > Gerd > > -- Lei