libvirt/tests/qemuxml2argvdata/qemuxml2argv-usb-hub-autoadd-deluxe.xml
Ján Tomko 3ac97c2ded qemu: Add enough USB hubs to accomodate all devices
Commit 815d98a started auto-adding one hub if there are more USB devices
than available USB ports.

This was a strange choice, since there might be even more devices.
Before USB address allocation was implemented in libvirt, QEMU
automatically added a new USB hub if the old one was full.

Adjust the logic to try adding as many hubs as will be needed
to plug in all the specified devices.

https://bugzilla.redhat.com/show_bug.cgi?id=1410188
2017-01-31 13:09:08 +01:00

36 lines
1.1 KiB
XML

<domain type='qemu'>
<name>QEMUGuest1</name>
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
<memory unit='KiB'>219136</memory>
<currentMemory unit='KiB'>219136</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='i686' machine='pc'>hvm</type>
<boot dev='hd'/>
</os>
<devices>
<emulator>/usr/bin/qemu</emulator>
<controller type='usb' index='0'/>
<memballoon model='virtio'/>
<input type='mouse' bus='usb'>
</input>
<input type='mouse' bus='usb'>
</input>
<input type='mouse' bus='usb'>
</input>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
<input type='tablet' bus='usb'/>
</devices>
</domain>