virt-manager/tests/nodedev-xml/devxml
Pavel Hrdina b06c91d2fc hostdev: add an address element for USB host devs if necessary
This issue was fixed for few years but only in virt-manager,
virt-install has the same bug.  If you have two USB devices with same
vendor and product ID, you need to use also address element to create
a valid XML to define that device into a guest.

This patch moves the logic from vmmAddHardware into VirtualHostDevice in
order to not duplicate that code for virt-manager and virt-install.

Also update the tests files to properly check this functionality.  I've
changed the USB device according the 'tests/testdriver.xml' and picked
one of the USB HUBs, because they have the same vendor and product ID.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1230611

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
2015-08-05 13:32:04 +02:00
..
pcidev.xml xmlbuilder: Always keep around an xml node, even if building from scratch 2013-07-25 10:59:23 -04:00
usbdev1.xml xmlbuilder: Always keep around an xml node, even if building from scratch 2013-07-25 10:59:23 -04:00
usbdev2.xml hostdev: add an address element for USB host devs if necessary 2015-08-05 13:32:04 +02:00