qemuxml2argvtest: Test timer validation for non-x86 arches

Add minimal coverage for non-x86_64 timer validation
from commit 2f5d8ffebe

Signed-off-by: Sebastian Mitterle <smitterl@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Sebastian Mitterle 2020-09-22 11:57:40 +00:00 committed by Peter Krempa
parent 9ec77eef2d
commit af5fb476da
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1 @@
unsupported configuration: Configuring the 'tsc' timer is not supported for virtType=kvm arch=s390x machine=s390-ccw guests

View File

@ -0,0 +1,18 @@
<domain type='kvm'>
<name>test</name>
<uuid>9aa4b45c-b9dd-45ef-91fe-862b27b4231f</uuid>
<memory>262144</memory>
<currentMemory>262144</currentMemory>
<os>
<type arch='s390x' machine='s390-ccw'>hvm</type>
</os>
<clock offset='utc'>
<timer name='tsc' present='yes'/>
</clock>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-s390x</emulator>
</devices>
</domain>

View File

@ -1141,6 +1141,8 @@ mymain(void)
QEMU_CAPS_DEVICE_ZPCI,
QEMU_CAPS_CCW,
QEMU_CAPS_VIRTIO_S390);
DO_TEST_PARSE_ERROR("non-x86_64-timer-error",
QEMU_CAPS_VIRTIO_S390);
DO_TEST("disk-order", QEMU_CAPS_VIRTIO_BLK_SCSI);
DO_TEST("disk-virtio-queues",
QEMU_CAPS_VIRTIO_BLK_NUM_QUEUES);