<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi libvirt-users,<br><br></div>Quick update on this issue. <br>After consulting RHEL support we managed to assign the USB2.0 device explicitly to the ehci controller, and the USB1.0 device was automatically added to the UHCI controller (as per default). <br>
</div><br></div>The following guest definition was added to define the USB2.0 and USB1.0 controllers:<br><br></div><span style="font-family:courier new,monospace"><controller type='usb' index='0' model='ehci'/><br>
</span></div><span style="font-family:courier new,monospace"><controller type='usb' index='1' model='piix3-uhci'></span><br><br></div>USB2.0 device is as follows, the USB1.0 device was standard.<br>
<br></div><span style="font-family:courier new,monospace"><hostdev mode='subsystem' type='usb' managed='yes'><br></span></div><span style="font-family:courier new,monospace">   <source><br>
</span></div><span style="font-family:courier new,monospace">       <vendor id='0x0763'/><br></span></div><span style="font-family:courier new,monospace">       <product id='0x202a'/><br></span><span style="font-family:courier new,monospace">       <address bus='1' device='3' /></span></div>
<span style="font-family:courier new,monospace">   </source><br></span></div><span style="font-family:courier new,monospace">   <address type='usb' bus='0' port='1'/></span><br></div><span style="font-family:courier new,monospace"></hostdev></span><br>
<br></div>For reference, there is a knowledge base article here with more information<br><a href="https://access.redhat.com/site/solutions/479683">https://access.redhat.com/site/solutions/479683</a><br><br></div>Regards,<br>
Cameron<br><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Cameron Curle</b> <span dir="ltr"><<a href="mailto:camerooney81@gmail.com">camerooney81@gmail.com</a>></span><br>
Date: Wed, Sep 11, 2013 at 9:57 AM<br>Subject: Specifying a USB Device to use USB2 Controller<br>To: <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br><br><br><div dir="ltr"><div><div><div><div>Hi all,<br>
<br></div>Can anyone please advise the correct process for defining a USB device to point to a USB 2 Controller? Specifically, how do you define a USB device to use the EHCI controller in a guest xml file?<br>
<br></div>To summarize my problem:<br></div><br>I have 1 x USB1 device and 1 x USB2 device that I would like to use from within a Windows XP Guest. If I add the USB2 device (Avid M-box) to the guest machine via Virt-Manager it will not detect in the guest, when I check the libvirt logs for the VM it shows a "Device speed mismatch" error. Which leads me to think that its attaching itself to the default UHCI controller, as the USB1 device functions correctly.<br>

<br></div><div>I've followed a similar post on the list here which seems to detail what I am trying to achieve:<br><a href="https://www.redhat.com/archives/libvirt-users/2012-June/msg00139.html" target="_blank">https://www.redhat.com/archives/libvirt-users/2012-June/msg00139.html</a><br>

<br><div>I have tried using the controller type and model as below, however, when I try and define the "port" option, it
 disappears from the configuration file and won't attach to the EHCI 
controller.</div><div><pre><controller type='usb' index='0' model='ich9-ehci' /<br></pre></div></div><div>I've done some searching but can't find any information on how to specifically assign a USB device to a certain controller. <br>

</div><div>Any information or guides you could provide would be much appreciated.<br></div><br><div>I'm using RHEL 6.4 with latest updates available.<br></div><div><span style="font-family:courier new,monospace">qemu-kvm-0.12.1.2-2.355.el6.4.7<br>

</span></div><div><span style="font-family:courier new,monospace">libvirt-0.10.2-18.el6 4.9</span><br><br></div><div>I'm currently defining the USB2 device like this:<br></div><div><span style="font-family:courier new,monospace"><hostdev mode='subsystem' type='usb' managed='yes'<br>

</span></div><div><span style="font-family:courier new,monospace">         <source><br></span></div><div><span style="font-family:courier new,monospace">            <vendor id='0x0763' /><br></span></div>

<div><span style="font-family:courier new,monospace">            <product id='0x202a' /><br></span></div><div><span style="font-family:courier new,monospace">            <address bus='1' device='3' /><br>

</span></div><div><span style="font-family:courier new,monospace">         </source><br></span></div><div><span style="font-family:courier new,monospace"></hostdev><br></span></div><div><br></div><div>Thank you in advance for your assistance.<br>

<br>Kind Regards,<br>Cameron<br></div><div><br></div><br><div><div><div><div><br></div></div></div></div></div>
</div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>