From: Lei Li <lilei@linux.vnet.ibm.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [RFC] Add serial number to usbdevice when passthrough to VM
Date: Thu, 17 Jan 2013 12:45:14 +0800 [thread overview]
Message-ID: <50F781DA.3000402@linux.vnet.ibm.com> (raw)
In-Reply-To: <50F65D15.3030803@redhat.com>
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:<vendor id>[:<product id>[:<serial number>]?
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
next prev parent reply other threads:[~2013-01-17 4:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-16 7:18 [Qemu-devel] [RFC] Add serial number to usbdevice when passthrough to VM Lei Li
2013-01-16 7:56 ` Gerd Hoffmann
2013-01-17 4:45 ` Lei Li [this message]
2013-01-17 8:34 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50F781DA.3000402@linux.vnet.ibm.com \
--to=lilei@linux.vnet.ibm.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.