]> xenbits.xensource.com Git - libvirt.git/commit
Fix usb master startport parsing
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 23 Apr 2013 14:23:51 +0000 (16:23 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 25 Apr 2013 12:54:46 +0000 (14:54 +0200)
commita553dbedb892625fbb13cbd88348603105fa8817
tree50081cdb890db04d070bdb4661afb098e16902cf
parent01d5a972104a8e57d0401336fe04558701c3e8a5
Fix usb master startport parsing

When all usb controllers connected to the same bus have <master
startport='x'/> specified, none of them have 'id=usb' assigned and
thus qemu fails due to invalid masterport specification (we use 'usb'
for that purpose).  Adding a check that at least one of the
controllers is specified without <master startport='x'/> and in case
this happens, error out due to invalid configuration.
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-usb-ich9-no-companion.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c