]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Add a USB hub to controller order test
authorJán Tomko <jtomko@redhat.com>
Fri, 17 Jun 2016 14:50:36 +0000 (16:50 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 23 Jun 2016 05:45:31 +0000 (07:45 +0200)
The test has too many USB devices.

tests/qemuxml2argvdata/qemuxml2argv-controller-order.args
tests/qemuxml2argvdata/qemuxml2argv-controller-order.xml
tests/qemuxml2argvtest.c

index 9aaae375248ca8544e9f4030452a1d8b543e7e0c..70f3fdb71d00859c1905d43727d095e623b8f444 100644 (file)
@@ -20,6 +20,7 @@ nowait \
 -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
 -device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x7 \
 -device usb-ccid,id=ccid0 \
+-device usb-hub,id=hub0 \
 -drive file=/tmp/fdr.img,format=raw,if=none,id=drive-virtio-disk0,cache=none,\
 aio=native \
 -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,\
index 07db77ea7f05e7f35a057dab5e0d941a42d9de1d..2ae14f662079b9aad9491be02b0f056c91c8888c 100644 (file)
@@ -81,6 +81,7 @@
         <address bus='14' device='6'/>
       </source>
     </hostdev>
+    <hub type='usb'/>
     <memballoon model='virtio'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
     </memballoon>
index 804b577757f9c5e38034a9481a8c2edf63daa933..a4b8bf4a499b3c398bd5b650122f742d858a13a6 100644 (file)
@@ -680,7 +680,8 @@ mymain(void)
             QEMU_CAPS_BOOT_MENU, QEMU_CAPS_PIIX3_USB_UHCI,
             QEMU_CAPS_PCI_MULTIFUNCTION, QEMU_CAPS_DRIVE_AIO,
             QEMU_CAPS_CCID_PASSTHRU, QEMU_CAPS_CHARDEV,
-            QEMU_CAPS_CHARDEV_SPICEVMC, QEMU_CAPS_SPICE, QEMU_CAPS_HDA_DUPLEX);
+            QEMU_CAPS_CHARDEV_SPICEVMC, QEMU_CAPS_SPICE,
+            QEMU_CAPS_HDA_DUPLEX, QEMU_CAPS_USB_HUB);
     DO_TEST("eoi-disabled", NONE);
     DO_TEST("eoi-enabled", NONE);
     DO_TEST("pv-spinlock-disabled", NONE);