Bug 1069590
Summary: | Lack of "<master startport='0'/>" section while start one guest with 'ehci' + 'vt82c686b-uhci' model usb companion controllers | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Xuesong Zhang <xuzhang> |
Component: | libvirt | Assignee: | Martin Kletzander <mkletzan> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | dyuan, mzhan, ngu, pzhang, rbalakri, shyu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.2.17-4.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 05:44:41 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
Xuesong Zhang
2014-02-25 11:02:01 UTC
ich9-uhci1 - ich9-uhci3 are special companion controllers that have predefined values of master startport defined. These are, however, the only ones that get that value specified automatically. Nobody should rely on that, however. I'd mark this as NOTABUG. Feel free to object, but if not, I'm going to close it later on. (In reply to Martin Kletzander from comment #3) > ich9-uhci1 - ich9-uhci3 are special companion controllers that have > predefined values of master startport defined. These are, however, the only > ones that get that value specified automatically. Hi,martin I tried to reproduce and test this issue again as your comment. and I found that ich9-uhci1 - ich9-uhci3 are special companion controllers and now they just can be used with ich9-ehci1 not echi ( in bug description ). If I use " ehci + ich9-uhci3 " as a special companion , ich9-uhci3 will get "<master startport='4'/>" as it has been predefined . but qemu will give an error that "it doesn't support companion controllers" when I try to start guest . #virsh start usb error: Failed to start domain usb error: internal error: process exited while connecting to monitor: 2015-07-13T11:50:01.300313Z qemu-kvm: -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0xb.0x2: Can't use USB bus 'usb.0' as masterbus, it doesn't support companion controllers 2015-07-13T11:50:01.300350Z qemu-kvm: -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0xb.0x2: Device 'ich9-usb-uhci3' could not be initialized So If I can say that "ich9-echi1 + ich9-uchi1~ich9-uhci3 " is the only useful and valid usb companion controllers . If it's right , the answer why we think this scenario deserves a bug is that we get misconceptions about companion controllers . Perhaps It should give more information in libvirt.org to avoid user problem. http://libvirt.org/formatdomain.html#elementsControllers Thanks ! (In reply to Pei Zhang from comment #4) Unfortunately, I don't think we can replicate all device information from qemu. For example whether it supports usage as a companion controller or not. The user is welcomed to try any combination as qemu might add/remove a support for some controller being companion one. However, the one described is the preferred one. Do you thing saying something along these lines in the documentation would be enough? Patch proposed upstream: https://www.redhat.com/archives/libvir-list/2015-July/msg00603.html Fixed upstream by commit v1.2.17-121-gb84a2cd87dad: commit b84a2cd87dad4a10e3a0064c30ac3df037048101 Author: Martin Kletzander <mkletzan> Date: Mon Jul 13 15:51:25 2015 +0200 docs: Document how libvirt handles companion controllers verified version : libvirt-1.2.17-6.el7.x86_64 qemu-kvm-rhev-2.3.0-21.el7.x86_64 steps: check doc : /usr/share/doc/libvirt-docs-1.2.17/html/formatdomain.html#elementsControllers ...... Not all controller models can be used as companion controllers and libvirt might provide some sensible defaults (settings of master startport and function of an address) for some particular models. Preferred companion controllers are ich-uhci[123]. ...... move this bug to verified. *** Bug 1260599 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-2202.html |