WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] usb passthrough

To: chris <tknchris@xxxxxxxxx>
Subject: Re: [Xen-users] usb passthrough
From: "Sergio Charpinel Jr." <sergiocharpinel@xxxxxxxxx>
Date: Fri, 26 Feb 2010 16:19:26 -0300
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 26 Feb 2010 11:20:44 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=RmUCW6JQSvOn7MqXZ0jgN92VWO88+5rzz+rVp18uzkU=; b=VI/p0+ilACuPOHMNX8rbuSPdNxBvaQFwFuWChlvRJh2ajVt+bbx+eKkb6uvXw/wMOe hJ+F4gMDnlmeOjRkolM66qzJgo6eF8OAxGNtQYR9r4nVtlUGkyDGkOwwQxJ/nKnHYlXT Cp+OyOC3HLo8va4gomx9+xT3iwVTG0LY1qW0Q=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=E+XsCSeH5ZfjO1eu4U2NVUPloBei5ArmLLmc8lPe2mxi/2PSai42ujp4LZta6VOq8L TOOEkXaP133xX+8NBBQ6eUEccTTj+Bl8sXkK63BZR/4OfGPBMgtQWlrQOVTWh/wmkO8w X8kw+P1wWxIqnMHP3gdBBZH3OlCto8LoGN5VQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <31e44a111002261100h5f9bbedah3b42afdcb1cc498f@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <fca1d54a1002260449k1957ccaco9de1594a9a42cd94@xxxxxxxxxxxxxx> <20100226144914.GQ2761@xxxxxxxxxxx> <31e44a111002260700mcea4687vfe29b69389552e8d@xxxxxxxxxxxxxx> <20100226150310.GR2761@xxxxxxxxxxx> <31e44a111002261022l78e5734j979ec1aece7407bc@xxxxxxxxxxxxxx> <20100226183315.GT2761@xxxxxxxxxxx> <31e44a111002261100h5f9bbedah3b42afdcb1cc498f@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
The problem is that When I use the usb and usbdevice options, I see
this in my domU:
domU:~# lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

It's a webcam, so I can't use it.. it do not create the /dev/video0
since i cant assing the driver to it.

Do you know what I can do?

Thanks

2010/2/26 chris <tknchris@xxxxxxxxx>:
> How is usb passthrough performance wise with a HVM domain? Is this
> something thats emulated? I'm curious how it would compare performance
> wise to passthrough of a usb controller card.
>
> - chris
>
> On Fri, Feb 26, 2010 at 1:33 PM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
>> On Fri, Feb 26, 2010 at 01:22:52PM -0500, chris wrote:
>>> Pasi,
>>>
>>> I know, my understanding was that pvusb was simply for exposing usb
>>> mass storage as a block device to the domain. I've never actually used
>>> it but I believe you can do this with a hvm domain without anything
>>> special. If anyone can actually confirm this it would be good to know
>>> :)
>>>
>>
>> There are two separate things:
>>
>> 1. the normal usb passthrough; this works for hvm guests without anything 
>> special by specifying usb=1 and usbdevice = []
>> 2. pvusb, which requires separate usbback driver in dom0, and xen+tools that 
>> has pvusb support, and usbfront driver in the guest.
>>
>> -- Pasi
>>
>>> As far as his original question, he needs vt-d to passthrough any
>>> physical device to a hvm domain.
>>>
>>> - chris
>>>
>>> On Fri, Feb 26, 2010 at 10:03 AM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
>>> > On Fri, Feb 26, 2010 at 10:00:34AM -0500, chris wrote:
>>> >> He said it was a HVM guest. I don't think you can passthrough to a hvm
>>> >> domain anything except usb storage with pvusb, correct?
>>> >>
>>> >
>>> > pvusb is different from the 'normal' usb=1 / usbdevice = [] stuff..
>>> >
>>> > I'm not totally sure what devices are supported with pvusb and with the 
>>> > normal usb passthrough.
>>> >
>>> > -- Pasi
>>> >
>>> >> On Fri, Feb 26, 2010 at 9:49 AM, Pasi Kärkkäinen <pasik@xxxxxx> wrote:
>>> >> > On Fri, Feb 26, 2010 at 09:49:38AM -0300, Sergio Charpinel Jr. wrote:
>>> >> >> Hi,
>>> >> >>
>>> >> >> I want to use a webcam in a HVM guest, but my dom0 doesnt support VT-d
>>> >> >> (just VT).
>>> >> >>
>>> >> >
>>> >> > USB passthrough doesn't require VT-d, it's only required for PCI device
>>> >> > passthrough to HVM guests.
>>> >> >
>>> >> >> I tried passing the parameters usb=1 and usbdevice = [ '..' ] and I
>>> >> >> could see an usb device in domU. But it does not know which device is.
>>> >> >>
>>> >> >> Which are the possibilites to do that? I prefer to use hvm machines,
>>> >> >> but if it is not possible, with PV machines it can work?
>>> >> >>
>>> >> >
>>> >> > With PV guest you could passthrough the whole USB controller (the PCI 
>>> >> > device)..
>>> >> >
>>> >> > -- Pasi
>>> >> >
>>> >> >
>>> >> > _______________________________________________
>>> >> > Xen-users mailing list
>>> >> > Xen-users@xxxxxxxxxxxxxxxxxxx
>>> >> > http://lists.xensource.com/xen-users
>>> >> >
>>> >
>>
>



-- 
Sergio Roberto Charpinel Jr.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users