]> xenbits.xensource.com Git - libvirt.git/commit
qemu_capabilities: Do not report USB as subsystem type if it is not available
authorThomas Huth <thuth@redhat.com>
Mon, 13 Jan 2020 08:04:57 +0000 (09:04 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 13 Jan 2020 12:53:23 +0000 (13:53 +0100)
commitbfd5f69d6038daeac03d2684fcd98aeee4ef1e24
tree85587ae2be4f1185edf55786fc0dae8436fce42f
parent177fbcdfaa11113ece55035954ef735077bd4461
qemu_capabilities: Do not report USB as subsystem type if it is not available

libvirt currently always reports that USB is available as a bus subsystem
type when running "virsh domcapabilities". However, this is not always
true, for example the qemu-system-s390x binary normally never has support
for USB. Thus we should only report that USB is available if there is
also a USB host controller available where we can attach USB devices.

Reported-by: Sebastian Mitterle <smitterl@redhat.com>
Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1759849
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_capabilities.c
tests/domaincapsdata/qemu_2.10.0.s390x.xml
tests/domaincapsdata/qemu_2.11.0.s390x.xml
tests/domaincapsdata/qemu_2.12.0.s390x.xml
tests/domaincapsdata/qemu_2.7.0.s390x.xml
tests/domaincapsdata/qemu_2.8.0.s390x.xml
tests/domaincapsdata/qemu_2.9.0.s390x.xml
tests/domaincapsdata/qemu_3.0.0.s390x.xml
tests/domaincapsdata/qemu_4.0.0.s390x.xml
tests/domaincapsdata/qemu_4.2.0.s390x.xml