Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- .../net-virtio-teaming-hostdev.xml | 5 ++++- ...th.xml => net-bandwidth.x86_64-latest.xml} | 5 ++++- ...2.xml => net-bandwidth2.x86_64-latest.xml} | 5 ++++- ...xml => net-hostdev-vfio.x86_64-latest.xml} | 5 ++++- tests/qemuxml2xmloutdata/net-user-passt.xml | 1 - ... => net-vdpa-multiqueue.x86_64-latest.xml} | 5 ++++- ...et-vdpa.xml => net-vdpa.x86_64-latest.xml} | 5 ++++- ...-virtio-teaming-hostdev.x86_64-latest.xml} | 0 ...-virtio-teaming-network.x86_64-latest.xml} | 5 ++++- ...l => net-virtio-teaming.x86_64-latest.xml} | 5 ++++- tests/qemuxml2xmltest.c | 19 ++++++++----------- 11 files changed, 40 insertions(+), 20 deletions(-) rename tests/qemuxml2xmloutdata/{net-bandwidth.xml => net-bandwidth.x86_64-latest.xml} (94%) rename tests/qemuxml2xmloutdata/{net-bandwidth2.xml => net-bandwidth2.x86_64-latest.xml} (93%) rename tests/qemuxml2xmloutdata/{net-hostdev-vfio.xml => net-hostdev-vfio.x86_64-latest.xml} (92%) delete mode 120000 tests/qemuxml2xmloutdata/net-user-passt.xml rename tests/qemuxml2xmloutdata/{net-vdpa-multiqueue.xml => net-vdpa-multiqueue.x86_64-latest.xml} (88%) rename tests/qemuxml2xmloutdata/{net-vdpa.xml => net-vdpa.x86_64-latest.xml} (88%) rename tests/qemuxml2xmloutdata/{net-virtio-teaming-hostdev.xml => net-virtio-teaming-hostdev.x86_64-latest.xml} (100%) rename tests/qemuxml2xmloutdata/{net-virtio-teaming-network.xml => net-virtio-teaming-network.x86_64-latest.xml} (92%) rename tests/qemuxml2xmloutdata/{net-virtio-teaming.xml => net-virtio-teaming.x86_64-latest.xml} (94%) diff --git a/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml b/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml index 46171ddf09..0df38ec42d 100644 --- a/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml +++ b/tests/qemuxml2argvdata/net-virtio-teaming-hostdev.xml @@ -8,6 +8,9 @@ <type arch='x86_64' machine='pc'>hvm</type> <boot dev='hd'/> </os> + <cpu mode='custom' match='exact' check='none'> + <model fallback='forbid'>qemu64</model> + </cpu> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> @@ -20,7 +23,7 @@ <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> - <controller type='usb' index='0'> + <controller type='usb' index='0' model='piix3-uhci'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'/> diff --git a/tests/qemuxml2xmloutdata/net-bandwidth.xml b/tests/qemuxml2xmloutdata/net-bandwidth.x86_64-latest.xml similarity index 94% rename from tests/qemuxml2xmloutdata/net-bandwidth.xml rename to tests/qemuxml2xmloutdata/net-bandwidth.x86_64-latest.xml index 7d5c552202..7d634d8940 100644 --- a/tests/qemuxml2xmloutdata/net-bandwidth.xml +++ b/tests/qemuxml2xmloutdata/net-bandwidth.x86_64-latest.xml @@ -15,6 +15,9 @@ <apic/> <pae/> </features> + <cpu mode='custom' match='exact' check='none'> + <model fallback='forbid'>qemu64</model> + </cpu> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> @@ -34,7 +37,7 @@ <readonly/> <address type='drive' controller='0' bus='1' target='0' unit='0'/> </disk> - <controller type='usb' index='0'> + <controller type='usb' index='0' model='piix3-uhci'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='ide' index='0'> diff --git a/tests/qemuxml2xmloutdata/net-bandwidth2.xml b/tests/qemuxml2xmloutdata/net-bandwidth2.x86_64-latest.xml similarity index 93% rename from tests/qemuxml2xmloutdata/net-bandwidth2.xml rename to tests/qemuxml2xmloutdata/net-bandwidth2.x86_64-latest.xml index 7d5209a64a..9ec0172dfc 100644 --- a/tests/qemuxml2xmloutdata/net-bandwidth2.xml +++ b/tests/qemuxml2xmloutdata/net-bandwidth2.x86_64-latest.xml @@ -15,6 +15,9 @@ <apic/> <pae/> </features> + <cpu mode='custom' match='exact' check='none'> + <model fallback='forbid'>qemu64</model> + </cpu> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> @@ -27,7 +30,7 @@ <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </disk> - <controller type='usb' index='0'> + <controller type='usb' index='0' model='piix3-uhci'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='virtio-serial' index='0'> diff --git a/tests/qemuxml2xmloutdata/net-hostdev-vfio.xml b/tests/qemuxml2xmloutdata/net-hostdev-vfio.x86_64-latest.xml similarity index 92% rename from tests/qemuxml2xmloutdata/net-hostdev-vfio.xml rename to tests/qemuxml2xmloutdata/net-hostdev-vfio.x86_64-latest.xml index 5d9696afd5..167e1b1fea 100644 --- a/tests/qemuxml2xmloutdata/net-hostdev-vfio.xml +++ b/tests/qemuxml2xmloutdata/net-hostdev-vfio.x86_64-latest.xml @@ -8,6 +8,9 @@ <type arch='x86_64' machine='pc'>hvm</type> <boot dev='hd'/> </os> + <cpu mode='custom' match='exact' check='none'> + <model fallback='forbid'>qemu64</model> + </cpu> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> @@ -20,7 +23,7 @@ <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> - <controller type='usb' index='0'> + <controller type='usb' index='0' model='piix3-uhci'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='ide' index='0'> diff --git a/tests/qemuxml2xmloutdata/net-user-passt.xml b/tests/qemuxml2xmloutdata/net-user-passt.xml deleted file mode 120000 index cfbc023ada..0000000000 --- a/tests/qemuxml2xmloutdata/net-user-passt.xml +++ /dev/null @@ -1 +0,0 @@ -../qemuxml2argvdata/net-user-passt.xml \ No newline at end of file diff --git a/tests/qemuxml2xmloutdata/net-vdpa-multiqueue.xml b/tests/qemuxml2xmloutdata/net-vdpa-multiqueue.x86_64-latest.xml similarity index 88% rename from tests/qemuxml2xmloutdata/net-vdpa-multiqueue.xml rename to tests/qemuxml2xmloutdata/net-vdpa-multiqueue.x86_64-latest.xml index 0876d5df62..71d171764d 100644 --- a/tests/qemuxml2xmloutdata/net-vdpa-multiqueue.xml +++ b/tests/qemuxml2xmloutdata/net-vdpa-multiqueue.x86_64-latest.xml @@ -8,13 +8,16 @@ <type arch='x86_64' machine='pc'>hvm</type> <boot dev='hd'/> </os> + <cpu mode='custom' match='exact' check='none'> + <model fallback='forbid'>qemu64</model> + </cpu> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> - <controller type='usb' index='0'> + <controller type='usb' index='0' model='piix3-uhci'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='ide' index='0'> diff --git a/tests/qemuxml2xmloutdata/net-vdpa.xml b/tests/qemuxml2xmloutdata/net-vdpa.x86_64-latest.xml similarity index 88% rename from tests/qemuxml2xmloutdata/net-vdpa.xml rename to tests/qemuxml2xmloutdata/net-vdpa.x86_64-latest.xml index 0c7ff151d7..407b25de40 100644 --- a/tests/qemuxml2xmloutdata/net-vdpa.xml +++ b/tests/qemuxml2xmloutdata/net-vdpa.x86_64-latest.xml @@ -8,13 +8,16 @@ <type arch='x86_64' machine='pc'>hvm</type> <boot dev='hd'/> </os> + <cpu mode='custom' match='exact' check='none'> + <model fallback='forbid'>qemu64</model> + </cpu> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>destroy</on_crash> <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> - <controller type='usb' index='0'> + <controller type='usb' index='0' model='piix3-uhci'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='ide' index='0'> diff --git a/tests/qemuxml2xmloutdata/net-virtio-teaming-hostdev.xml b/tests/qemuxml2xmloutdata/net-virtio-teaming-hostdev.x86_64-latest.xml similarity index 100% rename from tests/qemuxml2xmloutdata/net-virtio-teaming-hostdev.xml rename to tests/qemuxml2xmloutdata/net-virtio-teaming-hostdev.x86_64-latest.xml diff --git a/tests/qemuxml2xmloutdata/net-virtio-teaming-network.xml b/tests/qemuxml2xmloutdata/net-virtio-teaming-network.x86_64-latest.xml similarity index 92% rename from tests/qemuxml2xmloutdata/net-virtio-teaming-network.xml rename to tests/qemuxml2xmloutdata/net-virtio-teaming-network.x86_64-latest.xml index 99da3de48b..dcb2339035 100644 --- a/tests/qemuxml2xmloutdata/net-virtio-teaming-network.xml +++ b/tests/qemuxml2xmloutdata/net-virtio-teaming-network.x86_64-latest.xml @@ -8,6 +8,9 @@ <type arch='x86_64' machine='pc'>hvm</type> <boot dev='hd'/> </os> + <cpu mode='custom' match='exact' check='none'> + <model fallback='forbid'>qemu64</model> + </cpu> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> @@ -20,7 +23,7 @@ <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> - <controller type='usb' index='0'> + <controller type='usb' index='0' model='piix3-uhci'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'/> diff --git a/tests/qemuxml2xmloutdata/net-virtio-teaming.xml b/tests/qemuxml2xmloutdata/net-virtio-teaming.x86_64-latest.xml similarity index 94% rename from tests/qemuxml2xmloutdata/net-virtio-teaming.xml rename to tests/qemuxml2xmloutdata/net-virtio-teaming.x86_64-latest.xml index 05a1dd1d2f..0c744f795c 100644 --- a/tests/qemuxml2xmloutdata/net-virtio-teaming.xml +++ b/tests/qemuxml2xmloutdata/net-virtio-teaming.x86_64-latest.xml @@ -8,6 +8,9 @@ <type arch='x86_64' machine='pc'>hvm</type> <boot dev='hd'/> </os> + <cpu mode='custom' match='exact' check='none'> + <model fallback='forbid'>qemu64</model> + </cpu> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> @@ -20,7 +23,7 @@ <target dev='hda' bus='ide'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> - <controller type='usb' index='0'> + <controller type='usb' index='0' model='piix3-uhci'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'/> diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index 172d19ecfd..6b412abfd9 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -423,28 +423,25 @@ mymain(void) DO_TEST_CAPS_LATEST("net-eth-unmanaged-tap"); DO_TEST_CAPS_LATEST("net-virtio-network-portgroup"); DO_TEST_CAPS_LATEST("net-virtio-rxtxqueuesize"); - DO_TEST("net-virtio-teaming", - QEMU_CAPS_DEVICE_VFIO_PCI); - DO_TEST("net-virtio-teaming-network", - QEMU_CAPS_DEVICE_VFIO_PCI); - DO_TEST("net-virtio-teaming-hostdev", - QEMU_CAPS_DEVICE_VFIO_PCI); + DO_TEST_CAPS_LATEST("net-virtio-teaming"); + DO_TEST_CAPS_LATEST("net-virtio-teaming-network"); + DO_TEST_CAPS_LATEST("net-virtio-teaming-hostdev"); DO_TEST_CAPS_LATEST("net-isolated-port"); DO_TEST_CAPS_LATEST("net-hostdev"); DO_TEST_CAPS_LATEST("net-hostdev-bootorder"); - DO_TEST("net-hostdev-vfio", QEMU_CAPS_DEVICE_VFIO_PCI); + DO_TEST_CAPS_LATEST("net-hostdev-vfio"); DO_TEST_CAPS_LATEST("net-midonet"); DO_TEST_CAPS_LATEST("net-openvswitch"); DO_TEST_CAPS_LATEST("sound-device"); DO_TEST_CAPS_LATEST("watchdog"); DO_TEST_CAPS_LATEST("watchdog-q35-multiple"); - DO_TEST("net-bandwidth", QEMU_CAPS_DEVICE_VGA, QEMU_CAPS_VNC); - DO_TEST("net-bandwidth2", QEMU_CAPS_DEVICE_VGA, QEMU_CAPS_VNC); + DO_TEST_CAPS_LATEST("net-bandwidth"); + DO_TEST_CAPS_LATEST("net-bandwidth2"); DO_TEST_CAPS_LATEST("net-mtu"); DO_TEST_CAPS_LATEST("net-coalesce"); DO_TEST_CAPS_LATEST("net-many-models"); - DO_TEST("net-vdpa", QEMU_CAPS_NETDEV_VHOST_VDPA); - DO_TEST("net-vdpa-multiqueue", QEMU_CAPS_NETDEV_VHOST_VDPA); + DO_TEST_CAPS_LATEST("net-vdpa"); + DO_TEST_CAPS_LATEST("net-vdpa-multiqueue"); DO_TEST_CAPS_LATEST("net-virtio-rss"); DO_TEST_CAPS_LATEST("serial-tcp-tlsx509-chardev"); -- 2.41.0