libvirt/tests/qemuxml2argvdata/qemuxml2argv-usb-too-long-port-path-invalid.xml
Ján Tomko e9843279cc Add a test for long USB port paths
We support up to four levels of nested USB devices in the guest.

Add a test for a domain using all four and a negative test for a domain
using five.
2016-06-22 21:33:57 +02:00

34 lines
955 B
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'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<hub type='usb'>
<address type='usb' bus='0' port='1'/>
</hub>
<hub type='usb'>
<address type='usb' bus='0' port='1.1'/>
</hub>
<hub type='usb'>
<address type='usb' bus='0' port='1.1.1'/>
</hub>
<hub type='usb'>
<address type='usb' bus='0' port='1.1.1.1'/>
</hub>
<hub type='usb'>
<address type='usb' bus='0' port='1.1.1.1.1'/>
</hub>
<memballoon model='virtio'/>
</devices>
</domain>