]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: Simplify Intel IOMMU testing
authorAndrea Bolognani <abologna@redhat.com>
Fri, 17 May 2019 13:38:40 +0000 (15:38 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 22 May 2019 12:54:32 +0000 (14:54 +0200)
Remove a bunch of irrelevant devices and make sure all input
files explicitly opt out of USB controllers: the latter change
will help later, when we start using DO_TEST_CAPS_*().

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvdata/intel-iommu-caching-mode.args
tests/qemuxml2argvdata/intel-iommu-caching-mode.xml
tests/qemuxml2argvdata/intel-iommu-device-iotlb.xml
tests/qemuxml2argvdata/intel-iommu-eim.xml
tests/qemuxml2argvdata/intel-iommu-machine.xml
tests/qemuxml2argvdata/intel-iommu.xml

index a6d25c59fbf0b80bed5e0f7c87d282c218c10efc..1d1f35a38d03dba94b832b934a22c15f393616f0 100644 (file)
@@ -24,11 +24,4 @@ server,nowait \
 -rtc base=utc \
 -no-shutdown \
 -no-acpi \
--device intel-iommu,intremap=on,caching-mode=on \
--device i82801b11-bridge,id=pci.1,bus=pcie.0,addr=0x1e \
--device pci-bridge,chassis_nr=2,id=pci.2,bus=pci.1,addr=0x0 \
--device ioh3420,port=0x10,chassis=3,id=pci.3,bus=pcie.0,addr=0x2 \
--device ich9-usb-ehci1,id=usb,bus=pci.2,addr=0x2.0x7 \
--netdev user,id=hostnet0 \
--device rtl8139,netdev=hostnet0,id=net0,mac=52:54:00:ab:0c:5c,bus=pci.2,\
-addr=0x1
+-device intel-iommu,intremap=on,caching-mode=on
index 36a392403b00105f58b6196451428389e54cba7c..23e3702cda4da785c2e70bb99c6b6155431a45fc 100644 (file)
   <devices>
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <controller type='pci' index='0' model='pcie-root'/>
-    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
-      <model name='i82801b11-bridge'/>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
-    </controller>
-    <controller type='pci' index='2' model='pci-bridge'>
-      <model name='pci-bridge'/>
-      <target chassisNr='2'/>
-      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
-    </controller>
-    <controller type='pci' index='3' model='pcie-root-port'>
-      <model name='ioh3420'/>
-      <target chassis='3' port='0x10'/>
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
-    </controller>
+    <controller type='usb' index='0' model='none'/>
     <controller type='sata' index='0'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
     </controller>
-    <controller type='usb' index='0' model='ich9-ehci1'>
-      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x7'/>
-    </controller>
-    <interface type='user'>
-      <mac address='52:54:00:ab:0c:5c'/>
-      <model type='rtl8139'/>
-      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
-    </interface>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
     <memballoon model='none'/>
index 3eb08ab9af987ec621cb58c5166d5684990eb5f1..fe365eedc8ec0c1cd10d20ae225257251bfbacd3 100644 (file)
@@ -18,6 +18,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <controller type='pci' index='0' model='pcie-root'/>
+    <controller type='usb' index='0' model='none'/>
     <controller type='sata' index='0'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
     </controller>
index 8642ed3499ce328a8a2e00e3c2dc7995d0485f01..9770f77383e1c1395f5fd6933213ad34d9e4f76c 100644 (file)
@@ -18,6 +18,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <controller type='pci' index='0' model='pcie-root'/>
+    <controller type='usb' index='0' model='none'/>
     <controller type='sata' index='0'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
     </controller>
index 0961e4288d38de71d53ef1ee7f401621657905a9..90aba161567c752d8c68b73131fd17093c603392 100644 (file)
@@ -15,6 +15,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <controller type='pci' index='0' model='pcie-root'/>
+    <controller type='usb' index='0' model='none'/>
     <controller type='sata' index='0'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
     </controller>
index 0961e4288d38de71d53ef1ee7f401621657905a9..90aba161567c752d8c68b73131fd17093c603392 100644 (file)
@@ -15,6 +15,7 @@
   <devices>
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
     <controller type='pci' index='0' model='pcie-root'/>
+    <controller type='usb' index='0' model='none'/>
     <controller type='sata' index='0'>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
     </controller>