Bug 1260599
Summary: | 'firstport' 0-2 for the companion controllers 'pci-ohci' to 'ich9-usb-ehci1' does not take effect | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Gu Nini <ngu> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED DUPLICATE | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | CC: | dgibson, jtomko, knoel, kraxel, lvivier, ngu, qzhang, rbalakri, shuyu, virt-maint, xuhan, xuma, zhengtli |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-09-10 11:54:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Gu Nini
2015-09-07 10:57:46 UTC
Tested on x86_64, the result is exactly the same, so change Hardware to "All" and re-assign to virt-maint. Laurent, was that testing on x86 with OHCI, or UHCI? I was testing with OHCI. Besides, if boot up the guest with 25 or more usb disks, there is always following error: [root@ibm-p8-rhevm-10 home]# ./ehciohci.sh 25 char device redirected to /dev/pts/1 (label charserial0) QEMU 2.3.0 monitor - type 'help' for more information (qemu) ehci: Bad asynchronous state 0. Resetting to active ** ERROR:hw/usb/hcd-ehci.c:2139:ehci_advance_async_state: code should not be reached Please note the script name should be 'ehciohci.sh' instead of 'usb-xhci-storage.sh' in the bug Description, I have made a mistake. BTW, there is bz1261288 pci-ohci related. It doesn't work better if I change OHCI by UHCI, but it works fine if I use "-readconfig /home/lvivier/Projects/qemu/docs/ich9-ehci-uhci.cfg" from qemu source tree. Sounds like a command line parameters problem. (In reply to Laurent Vivier from comment #6) > It doesn't work better if I change OHCI by UHCI, but it works fine if I use > "-readconfig /home/lvivier/Projects/qemu/docs/ich9-ehci-uhci.cfg" from qemu > source tree. > > Sounds like a command line parameters problem. Gu Nini, Can you check this? Thanks. ehci has 6 ports, ohci has three, so you need two ohci controllers to make things work correctly, like this in libvirt syntax: <controller type='usb' index='2' model='ich9-ehci1'> <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x7' multifunction='on'/> </controller> <controller type='usb' index='2' model='pci-ohci'> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x0' multifunction='on'/> </controller> <controller type='usb' index='2' model='pci-ohci'> <master startport='3'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x1d' function='0x1' multifunction='on'/> </controller> which libvirt translates to: -device ich9-usb-ehci1,id=usb2,bus=pci.0,multifunction=on,addr=0x1d.0x7 -device pci-ohci,masterbus=usb2.0,firstport=0,bus=pci.0,multifunction=on,addr=0x1d -device pciohci,masterbus=usb2.0,firstport=3,bus=pci.0,multifunction=on,addr=0x1d.0x1 Thanks Gerd, in my case (ppc64le and x86_64), it works fine. (In reply to Karen Noel from comment #7) > (In reply to Laurent Vivier from comment #6) > > It doesn't work better if I change OHCI by UHCI, but it works fine if I use > > "-readconfig /home/lvivier/Projects/qemu/docs/ich9-ehci-uhci.cfg" from qemu > > source tree. > > > > Sounds like a command line parameters problem. > > Gu Nini, Can you check this? Thanks. Yes, it can work now with the way Gerd Hoffmann provided, is there anywhere we can check the usage of this type scenarios, otherwise should we record it to somewhere? Libvirt does not check if the companion controllers cover all the ports of the master controllers. *** This bug has been marked as a duplicate of bug 1069590 *** |