]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: qemu: test <address type='pci'/> with aarch64
authorCole Robinson <crobinso@redhat.com>
Sun, 15 May 2016 19:11:29 +0000 (15:11 -0400)
committerLaine Stump <laine@laine.org>
Fri, 20 May 2016 17:54:26 +0000 (13:54 -0400)
This is an interesting test case since PCI isn't the default for
aarch64.

tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-manual-addresses.args
tests/qemuxml2argvdata/qemuxml2argv-aarch64-virtio-pci-manual-addresses.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-aarch64-virtio-pci-manual-addresses.xml

index 2dfcd1e3f809ccfe398d6def7cb7433a6b94fe06..0234404f00a1197d1a5ead03ac51295eb03eecd4 100644 (file)
@@ -29,4 +29,6 @@ QEMU_AUDIO_DRV=none \
 -device scsi-disk,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,\
 id=scsi0-0-0-0 \
 -device virtio-net-pci,vlan=0,id=net0,mac=52:54:00:09:a4:37,bus=pcie.0,addr=0x2 \
--net user,vlan=0,name=hostnet0
+-net user,vlan=0,name=hostnet0 \
+-device virtio-net-pci,vlan=1,id=net1,mac=52:54:00:09:a4:38,bus=pci.2,addr=0x1 \
+-net user,vlan=1,name=hostnet1
index 6a44f19efece0cce596d6f16fcf332c5c36284f8..bf0f2491f39c02b72d7301ee0a4ae96451292291 100644 (file)
       <model type='virtio'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </interface>
+    <interface type='user'>
+      <mac address='52:54:00:09:a4:38'/>
+      <model type='virtio'/>
+      <address type='pci'/>
+    </interface>
   </devices>
 </domain>
index 0d691691574e979526df6f326480754533a45be2..4fdedac9e8454dabcb23791f18e1646907562e61 100644 (file)
       <model type='virtio'/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
     </interface>
+    <interface type='user'>
+      <mac address='52:54:00:09:a4:38'/>
+      <model type='virtio'/>
+      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
+    </interface>
   </devices>
 </domain>