xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* usbdevice option and specifying a specific device
@ 2013-07-29 19:17 Gordan Bobic
  2013-07-29 20:01 ` Gordan Bobic
  2013-07-30  8:23 ` Ian Campbell
  0 siblings, 2 replies; 9+ messages in thread
From: Gordan Bobic @ 2013-07-29 19:17 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

I'm trying to use usbdevice option in the config file (instead of 
passing USB PCI devices), and the documentation says to specify the 
device in the form host:xxxx:yyyy where xxxx:yyyy is the USB 
vendor:device ID.

Except there is a problem with this - I have two identical keyboards and 
mice, one set of which I want to pass to the host, and the other set 
which I want to pass to the guest. Since the xxxx:yyyy will be the same 
for both devices of each type, how can I deterministically specify which 
I want to keep on the host and which I want to pass to the guest?

Is there a way to use something like BusID:DeviceID instead in order to 
provide a more deterministic outcome?

Gordan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: usbdevice option and specifying a specific device
  2013-07-29 19:17 usbdevice option and specifying a specific device Gordan Bobic
@ 2013-07-29 20:01 ` Gordan Bobic
  2013-07-29 21:18   ` Pasi Kärkkäinen
  2013-07-30  8:23 ` Ian Campbell
  1 sibling, 1 reply; 9+ messages in thread
From: Gordan Bobic @ 2013-07-29 20:01 UTC (permalink / raw)
  To: xen-devel@lists.xen.org

On 07/29/2013 08:17 PM, Gordan Bobic wrote:
> I'm trying to use usbdevice option in the config file (instead of
> passing USB PCI devices), and the documentation says to specify the
> device in the form host:xxxx:yyyy where xxxx:yyyy is the USB
> vendor:device ID.
>
> Except there is a problem with this - I have two identical keyboards and
> mice, one set of which I want to pass to the host, and the other set
> which I want to pass to the guest. Since the xxxx:yyyy will be the same
> for both devices of each type, how can I deterministically specify which
> I want to keep on the host and which I want to pass to the guest?
>
> Is there a way to use something like BusID:DeviceID instead in order to
> provide a more deterministic outcome?

On a related note, the first device gets passed through successfully, 
but the second fails with a warning in qemu-dm log:

Warning: could not add USB device host:1532:002f

My usbdevice list is:

usbdevice = [ 'host:045e:00dd', 'host:1532:002f' ]

I cannot see anything more explanator in any of the other logs - what 
should I be looking for?

Gordan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: usbdevice option and specifying a specific device
  2013-07-29 20:01 ` Gordan Bobic
@ 2013-07-29 21:18   ` Pasi Kärkkäinen
  2013-07-29 21:40     ` Gordan Bobic
  0 siblings, 1 reply; 9+ messages in thread
From: Pasi Kärkkäinen @ 2013-07-29 21:18 UTC (permalink / raw)
  To: Gordan Bobic; +Cc: xen-devel@lists.xen.org

On Mon, Jul 29, 2013 at 09:01:42PM +0100, Gordan Bobic wrote:
> On 07/29/2013 08:17 PM, Gordan Bobic wrote:
> >I'm trying to use usbdevice option in the config file (instead of
> >passing USB PCI devices), and the documentation says to specify the
> >device in the form host:xxxx:yyyy where xxxx:yyyy is the USB
> >vendor:device ID.
> >
> >Except there is a problem with this - I have two identical keyboards and
> >mice, one set of which I want to pass to the host, and the other set
> >which I want to pass to the guest. Since the xxxx:yyyy will be the same
> >for both devices of each type, how can I deterministically specify which
> >I want to keep on the host and which I want to pass to the guest?
> >
> >Is there a way to use something like BusID:DeviceID instead in order to
> >provide a more deterministic outcome?
> 
> On a related note, the first device gets passed through
> successfully, but the second fails with a warning in qemu-dm log:
> 
> Warning: could not add USB device host:1532:002f
> 
> My usbdevice list is:
> 
> usbdevice = [ 'host:045e:00dd', 'host:1532:002f' ]
> 
> I cannot see anything more explanator in any of the other logs -
> what should I be looking for?
> 

You forgot to mention all the needed basic info.. 

What Xen version? Are you using xl? 

-- Pasi

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: usbdevice option and specifying a specific device
  2013-07-29 21:18   ` Pasi Kärkkäinen
@ 2013-07-29 21:40     ` Gordan Bobic
  0 siblings, 0 replies; 9+ messages in thread
From: Gordan Bobic @ 2013-07-29 21:40 UTC (permalink / raw)
  To: Pasi Kärkkäinen; +Cc: xen-devel@lists.xen.org

On 07/29/2013 10:18 PM, Pasi Kärkkäinen wrote:
> On Mon, Jul 29, 2013 at 09:01:42PM +0100, Gordan Bobic wrote:
>> On 07/29/2013 08:17 PM, Gordan Bobic wrote:
>>> I'm trying to use usbdevice option in the config file (instead of
>>> passing USB PCI devices), and the documentation says to specify the
>>> device in the form host:xxxx:yyyy where xxxx:yyyy is the USB
>>> vendor:device ID.
>>>
>>> Except there is a problem with this - I have two identical keyboards and
>>> mice, one set of which I want to pass to the host, and the other set
>>> which I want to pass to the guest. Since the xxxx:yyyy will be the same
>>> for both devices of each type, how can I deterministically specify which
>>> I want to keep on the host and which I want to pass to the guest?
>>>
>>> Is there a way to use something like BusID:DeviceID instead in order to
>>> provide a more deterministic outcome?
>>
>> On a related note, the first device gets passed through
>> successfully, but the second fails with a warning in qemu-dm log:
>>
>> Warning: could not add USB device host:1532:002f
>>
>> My usbdevice list is:
>>
>> usbdevice = [ 'host:045e:00dd', 'host:1532:002f' ]
>>
>> I cannot see anything more explanator in any of the other logs -
>> what should I be looking for?
>>
>
> You forgot to mention all the needed basic info..
>
> What Xen version? Are you using xl?

Xen 4.3, and yes, I am using xl.

Gordan

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: usbdevice option and specifying a specific device
  2013-07-29 19:17 usbdevice option and specifying a specific device Gordan Bobic
  2013-07-29 20:01 ` Gordan Bobic
@ 2013-07-30  8:23 ` Ian Campbell
  2013-07-31  8:25   ` George Dunlap
  1 sibling, 1 reply; 9+ messages in thread
From: Ian Campbell @ 2013-07-30  8:23 UTC (permalink / raw)
  To: Gordan Bobic; +Cc: George Dunlap, xen-devel@lists.xen.org

On Mon, 2013-07-29 at 20:17 +0100, Gordan Bobic wrote:
> I'm trying to use usbdevice option in the config file (instead of 
> passing USB PCI devices), and the documentation says to specify the 
> device in the form host:xxxx:yyyy where xxxx:yyyy is the USB 
> vendor:device ID.
> 
> Except there is a problem with this - I have two identical keyboards and 
> mice, one set of which I want to pass to the host, and the other set 
> which I want to pass to the guest. Since the xxxx:yyyy will be the same 
> for both devices of each type, how can I deterministically specify which 
> I want to keep on the host and which I want to pass to the guest?
> 
> Is there a way to use something like BusID:DeviceID instead in order to 
> provide a more deterministic outcome?

I think George (CCd) had some plans to improve this initial
implementation in the 4.4 time frame.

Since it looks like the devices which you pass are given direct to
qemu's -usbdevice option it seems like host:bus.addr should work too.
"Supporting" this option is perhaps just a docs patch away?

Not sure if this varies depending on qemu-trad vs upstream, I only
looked at the upstream manpage.
Ian.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: usbdevice option and specifying a specific device
  2013-07-30  8:23 ` Ian Campbell
@ 2013-07-31  8:25   ` George Dunlap
  2013-07-31 10:12     ` Ian Campbell
  0 siblings, 1 reply; 9+ messages in thread
From: George Dunlap @ 2013-07-31  8:25 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Gordan Bobic, xen-devel@lists.xen.org

On 30/07/13 09:23, Ian Campbell wrote:
> On Mon, 2013-07-29 at 20:17 +0100, Gordan Bobic wrote:
>> I'm trying to use usbdevice option in the config file (instead of
>> passing USB PCI devices), and the documentation says to specify the
>> device in the form host:xxxx:yyyy where xxxx:yyyy is the USB
>> vendor:device ID.
>>
>> Except there is a problem with this - I have two identical keyboards and
>> mice, one set of which I want to pass to the host, and the other set
>> which I want to pass to the guest. Since the xxxx:yyyy will be the same
>> for both devices of each type, how can I deterministically specify which
>> I want to keep on the host and which I want to pass to the guest?
>>
>> Is there a way to use something like BusID:DeviceID instead in order to
>> provide a more deterministic outcome?
> I think George (CCd) had some plans to improve this initial
> implementation in the 4.4 time frame.
>
> Since it looks like the devices which you pass are given direct to
> qemu's -usbdevice option it seems like host:bus.addr should work too.
> "Supporting" this option is perhaps just a docs patch away?

Yes, I think "host:bus.addr" should work as well.  Let us know if it 
doesn't.

> Not sure if this varies depending on qemu-trad vs upstream, I only
> looked at the upstream manpage.

Command-line options to qemu are part of the stable interface, so it 
should work for both qemu-traditional and qemu-xen.

  -George

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: usbdevice option and specifying a specific device
  2013-07-31  8:25   ` George Dunlap
@ 2013-07-31 10:12     ` Ian Campbell
  2013-08-05 11:24       ` George Dunlap
  0 siblings, 1 reply; 9+ messages in thread
From: Ian Campbell @ 2013-07-31 10:12 UTC (permalink / raw)
  To: George Dunlap; +Cc: Gordan Bobic, xen-devel@lists.xen.org

On Wed, 2013-07-31 at 09:25 +0100, George Dunlap wrote:
> On 30/07/13 09:23, Ian Campbell wrote:
> > On Mon, 2013-07-29 at 20:17 +0100, Gordan Bobic wrote:
> >> I'm trying to use usbdevice option in the config file (instead of
> >> passing USB PCI devices), and the documentation says to specify the
> >> device in the form host:xxxx:yyyy where xxxx:yyyy is the USB
> >> vendor:device ID.
> >>
> >> Except there is a problem with this - I have two identical keyboards and
> >> mice, one set of which I want to pass to the host, and the other set
> >> which I want to pass to the guest. Since the xxxx:yyyy will be the same
> >> for both devices of each type, how can I deterministically specify which
> >> I want to keep on the host and which I want to pass to the guest?
> >>
> >> Is there a way to use something like BusID:DeviceID instead in order to
> >> provide a more deterministic outcome?
> > I think George (CCd) had some plans to improve this initial
> > implementation in the 4.4 time frame.
> >
> > Since it looks like the devices which you pass are given direct to
> > qemu's -usbdevice option it seems like host:bus.addr should work too.
> > "Supporting" this option is perhaps just a docs patch away?
> 
> Yes, I think "host:bus.addr" should work as well.  Let us know if it 
> doesn't.

If it does then we should add it to our docs as something which we
support passing on to qemu.

> > Not sure if this varies depending on qemu-trad vs upstream, I only
> > looked at the upstream manpage.
> 
> Command-line options to qemu are part of the stable interface, so it 
> should work for both qemu-traditional and qemu-xen.

Assuming it was supported at all in the -trad era, which I guess you are
saying it was.

Ian.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: usbdevice option and specifying a specific device
  2013-07-31 10:12     ` Ian Campbell
@ 2013-08-05 11:24       ` George Dunlap
  2013-08-05 11:27         ` Gordan Bobic
  0 siblings, 1 reply; 9+ messages in thread
From: George Dunlap @ 2013-08-05 11:24 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Gordan Bobic, xen-devel@lists.xen.org

On 31/07/13 11:12, Ian Campbell wrote:
> On Wed, 2013-07-31 at 09:25 +0100, George Dunlap wrote:
>> On 30/07/13 09:23, Ian Campbell wrote:
>>> On Mon, 2013-07-29 at 20:17 +0100, Gordan Bobic wrote:
>>>> I'm trying to use usbdevice option in the config file (instead of
>>>> passing USB PCI devices), and the documentation says to specify the
>>>> device in the form host:xxxx:yyyy where xxxx:yyyy is the USB
>>>> vendor:device ID.
>>>>
>>>> Except there is a problem with this - I have two identical keyboards and
>>>> mice, one set of which I want to pass to the host, and the other set
>>>> which I want to pass to the guest. Since the xxxx:yyyy will be the same
>>>> for both devices of each type, how can I deterministically specify which
>>>> I want to keep on the host and which I want to pass to the guest?
>>>>
>>>> Is there a way to use something like BusID:DeviceID instead in order to
>>>> provide a more deterministic outcome?
>>> I think George (CCd) had some plans to improve this initial
>>> implementation in the 4.4 time frame.
>>>
>>> Since it looks like the devices which you pass are given direct to
>>> qemu's -usbdevice option it seems like host:bus.addr should work too.
>>> "Supporting" this option is perhaps just a docs patch away?
>> Yes, I think "host:bus.addr" should work as well.  Let us know if it
>> doesn't.
> If it does then we should add it to our docs as something which we
> support passing on to qemu.

Gordan, did you try this?

  -George

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: usbdevice option and specifying a specific device
  2013-08-05 11:24       ` George Dunlap
@ 2013-08-05 11:27         ` Gordan Bobic
  0 siblings, 0 replies; 9+ messages in thread
From: Gordan Bobic @ 2013-08-05 11:27 UTC (permalink / raw)
  To: George Dunlap; +Cc: Ian Campbell, xen-devel@lists.xen.org

 On Mon, 5 Aug 2013 12:24:40 +0100, George Dunlap 
 <george.dunlap@eu.citrix.com> wrote:
> On 31/07/13 11:12, Ian Campbell wrote:
>> On Wed, 2013-07-31 at 09:25 +0100, George Dunlap wrote:
>>> On 30/07/13 09:23, Ian Campbell wrote:
>>>> On Mon, 2013-07-29 at 20:17 +0100, Gordan Bobic wrote:
>>>>> I'm trying to use usbdevice option in the config file (instead of
>>>>> passing USB PCI devices), and the documentation says to specify 
>>>>> the
>>>>> device in the form host:xxxx:yyyy where xxxx:yyyy is the USB
>>>>> vendor:device ID.
>>>>>
>>>>> Except there is a problem with this - I have two identical 
>>>>> keyboards and
>>>>> mice, one set of which I want to pass to the host, and the other 
>>>>> set
>>>>> which I want to pass to the guest. Since the xxxx:yyyy will be 
>>>>> the same
>>>>> for both devices of each type, how can I deterministically 
>>>>> specify which
>>>>> I want to keep on the host and which I want to pass to the guest?
>>>>>
>>>>> Is there a way to use something like BusID:DeviceID instead in 
>>>>> order to
>>>>> provide a more deterministic outcome?
>>>> I think George (CCd) had some plans to improve this initial
>>>> implementation in the 4.4 time frame.
>>>>
>>>> Since it looks like the devices which you pass are given direct to
>>>> qemu's -usbdevice option it seems like host:bus.addr should work 
>>>> too.
>>>> "Supporting" this option is perhaps just a docs patch away?
>>> Yes, I think "host:bus.addr" should work as well.  Let us know if 
>>> it
>>> doesn't.
>> If it does then we should add it to our docs as something which we
>> support passing on to qemu.
>
> Gordan, did you try this?

 Yes, it works, but only if BusID != 8. See the bug report I posted
 yesterday. I will double check tonight whether the BusID=8 gets
 clobbered into BusID=0 at xl or qemu-dm level.

 Gordan

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-08-05 11:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-29 19:17 usbdevice option and specifying a specific device Gordan Bobic
2013-07-29 20:01 ` Gordan Bobic
2013-07-29 21:18   ` Pasi Kärkkäinen
2013-07-29 21:40     ` Gordan Bobic
2013-07-30  8:23 ` Ian Campbell
2013-07-31  8:25   ` George Dunlap
2013-07-31 10:12     ` Ian Campbell
2013-08-05 11:24       ` George Dunlap
2013-08-05 11:27         ` Gordan Bobic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).