On Mon, Jun 25, 2012 at 07:16:03PM +0200, Michael Hierweck wrote:
Hi,
it is possible to define a domain along with several usb host
controllers, e.g.
<controller type='usb' index='0' model='ich9-ehci' />
<controller type='usb' index='1' model='ich9-uhci' />
How to distinguish between those controllers/busses when adding input or
host devices such as
<input type='tablet' bus='usb'/>
<hostdev mode='subsystem' type='usb' managed='no'>
<source>
<vendor id='...'/>
<product id='...'/>
</source>
</hostdev>
Without explicit assignment either every device seems to be attached to
the uhci controller or the domain refuses to start because the tablet is
attached to the ehci controller implicitly, depending on the order of
the controller definition (index).
You ought to be able to add the following
<address type='usb' bus='1' port='1'/>
eg
<hostdev mode='subsystem' type='usb' managed='no'>
<source>
<vendor id='...'/>
<product id='...'/>
</source>
<address type='usb' bus='1' port='1'/>
</hostdev>
The 'bus' attribute value on <address> matches up to the 'index'
on the <controller> you want to attach to
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|