libvirt/tests/qemuxml2argvdata/qemuxml2argv-usb-ports.xml
Marc-André Lureau 31710a5389 Modify USB port to be defined as a port path
So that devices can be attached to hubs. Example, to attach to first
port of a usb-hub on port 1.

      <hub type='usb'>
         <address type='usb' bus='0' port='1'/>
      </hub>

      <input type='mouse' type='usb'>
         <address type='usb' bus='0' port='1.1'/>
      </hub>

also add a test entry
2011-09-02 23:39:03 +08:00

32 lines
855 B
XML

<domain type='qemu'>
<name>QEMUGuest1</name>
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
<memory>219136</memory>
<currentMemory>219200</currentMemory>
<vcpu>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'/>
<hub type='usb'>
<address type='usb' bus='0' port='1'/>
</hub>
<input type='mouse' bus='usb'>
<address type='usb' bus='0' port='1.1'/>
</input>
<hub type='usb'>
<address type='usb' bus='0' port='1.2'/>
</hub>
<input type='mouse' bus='usb'>
<address type='usb' bus='0' port='1.2.1'/>
</input>
<input type='mouse' bus='usb'>
<address type='usb' bus='0' port='1.2.2'/>
</input>
</devices>
</domain>