mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
tests: qemuxml2argv: Modernize virtio-scsi iothread tests
Use DO_TEST_CAPS_LATEST to obtain modern results. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
253ddf5a75
commit
76709a76ba
@ -5,10 +5,13 @@ USER=test \
|
|||||||
LOGNAME=test \
|
LOGNAME=test \
|
||||||
QEMU_AUDIO_DRV=none \
|
QEMU_AUDIO_DRV=none \
|
||||||
/usr/bin/qemu-system-s390x \
|
/usr/bin/qemu-system-s390x \
|
||||||
-name QEMUGuest1 \
|
-name guest=QEMUGuest1,debug-threads=on \
|
||||||
-S \
|
-S \
|
||||||
|
-object secret,id=masterKey0,format=raw,\
|
||||||
|
file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||||
-machine s390-ccw,accel=tcg,usb=off,dump-guest-core=off \
|
-machine s390-ccw,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
-m 214 \
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
-smp 1,sockets=1,cores=1,threads=1 \
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
-object iothread,id=iothread1 \
|
-object iothread,id=iothread1 \
|
||||||
-object iothread,id=iothread2 \
|
-object iothread,id=iothread2 \
|
||||||
@ -16,16 +19,19 @@ QEMU_AUDIO_DRV=none \
|
|||||||
-display none \
|
-display none \
|
||||||
-no-user-config \
|
-no-user-config \
|
||||||
-nodefaults \
|
-nodefaults \
|
||||||
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
-chardev socket,id=charmonitor,fd=1729,server,nowait \
|
||||||
server,nowait \
|
|
||||||
-mon chardev=charmonitor,id=monitor,mode=control \
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
-rtc base=utc \
|
-rtc base=utc \
|
||||||
-no-shutdown \
|
-no-shutdown \
|
||||||
|
-boot strict=on \
|
||||||
-device virtio-scsi-ccw,iothread=iothread2,id=scsi0,devno=fe.0.0001 \
|
-device virtio-scsi-ccw,iothread=iothread2,id=scsi0,devno=fe.0.0001 \
|
||||||
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-virtio-disk0 \
|
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-virtio-disk0 \
|
||||||
-device virtio-blk-ccw,iothread=iothread1,devno=fe.0.0000,\
|
-device virtio-blk-ccw,iothread=iothread1,scsi=off,devno=fe.0.0000,\
|
||||||
drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \
|
drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \
|
||||||
-drive file=/dev/HostVG/QEMUGuest2,format=raw,if=none,id=drive-scsi0-0-2-0 \
|
-drive file=/dev/HostVG/QEMUGuest2,format=raw,if=none,id=drive-scsi0-0-2-0 \
|
||||||
-device scsi-disk,bus=scsi0.0,channel=0,scsi-id=2,lun=0,\
|
-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=2,lun=0,drive=drive-scsi0-0-2-0,\
|
||||||
drive=drive-scsi0-0-2-0,id=scsi0-0-2-0 \
|
id=scsi0-0-2-0 \
|
||||||
-device virtio-balloon-ccw,id=balloon0,devno=fe.0.000a
|
-device virtio-balloon-ccw,id=balloon0,devno=fe.0.000a \
|
||||||
|
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\
|
||||||
|
resourcecontrol=deny \
|
||||||
|
-msg timestamp=on
|
@ -5,10 +5,13 @@ USER=test \
|
|||||||
LOGNAME=test \
|
LOGNAME=test \
|
||||||
QEMU_AUDIO_DRV=none \
|
QEMU_AUDIO_DRV=none \
|
||||||
/usr/bin/qemu-system-i686 \
|
/usr/bin/qemu-system-i686 \
|
||||||
-name QEMUGuest1 \
|
-name guest=QEMUGuest1,debug-threads=on \
|
||||||
-S \
|
-S \
|
||||||
|
-object secret,id=masterKey0,format=raw,\
|
||||||
|
file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
||||||
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
-machine pc,accel=tcg,usb=off,dump-guest-core=off \
|
||||||
-m 214 \
|
-m 214 \
|
||||||
|
-realtime mlock=off \
|
||||||
-smp 2,sockets=2,cores=1,threads=1 \
|
-smp 2,sockets=2,cores=1,threads=1 \
|
||||||
-object iothread,id=iothread1 \
|
-object iothread,id=iothread1 \
|
||||||
-object iothread,id=iothread2 \
|
-object iothread,id=iothread2 \
|
||||||
@ -16,22 +19,24 @@ QEMU_AUDIO_DRV=none \
|
|||||||
-display none \
|
-display none \
|
||||||
-no-user-config \
|
-no-user-config \
|
||||||
-nodefaults \
|
-nodefaults \
|
||||||
-chardev socket,id=charmonitor,path=/tmp/lib/domain--1-QEMUGuest1/monitor.sock,\
|
-chardev socket,id=charmonitor,fd=1729,server,nowait \
|
||||||
server,nowait \
|
|
||||||
-mon chardev=charmonitor,id=monitor,mode=control \
|
-mon chardev=charmonitor,id=monitor,mode=control \
|
||||||
-rtc base=utc \
|
-rtc base=utc \
|
||||||
-no-shutdown \
|
-no-shutdown \
|
||||||
-no-acpi \
|
-no-acpi \
|
||||||
|
-boot strict=on \
|
||||||
|
-device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 \
|
||||||
-device virtio-scsi-pci,iothread=iothread2,id=scsi0,bus=pci.0,addr=0xb \
|
-device virtio-scsi-pci,iothread=iothread2,id=scsi0,bus=pci.0,addr=0xb \
|
||||||
-usb \
|
|
||||||
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-ide0-0-0 \
|
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-ide0-0-0 \
|
||||||
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,\
|
-device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 \
|
||||||
bootindex=1 \
|
|
||||||
-drive file=/var/lib/libvirt/images/iothrtest1.img,format=raw,if=none,\
|
-drive file=/var/lib/libvirt/images/iothrtest1.img,format=raw,if=none,\
|
||||||
id=drive-virtio-disk1 \
|
id=drive-virtio-disk1 \
|
||||||
-device virtio-blk-pci,iothread=iothread1,bus=pci.0,addr=0x4,\
|
-device virtio-blk-pci,iothread=iothread1,scsi=off,bus=pci.0,addr=0x4,\
|
||||||
drive=drive-virtio-disk1,id=virtio-disk1 \
|
drive=drive-virtio-disk1,id=virtio-disk1 \
|
||||||
-drive file=/var/lib/libvirt/images/iothrtest2.img,format=raw,if=none,\
|
-drive file=/var/lib/libvirt/images/iothrtest2.img,format=raw,if=none,\
|
||||||
id=drive-scsi0-0-0-3 \
|
id=drive-scsi0-0-0-3 \
|
||||||
-device scsi-disk,bus=scsi0.0,channel=0,scsi-id=0,lun=3,\
|
-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=3,drive=drive-scsi0-0-0-3,\
|
||||||
drive=drive-scsi0-0-0-3,id=scsi0-0-0-3
|
id=scsi0-0-0-3 \
|
||||||
|
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,\
|
||||||
|
resourcecontrol=deny \
|
||||||
|
-msg timestamp=on
|
@ -1691,12 +1691,8 @@ mymain(void)
|
|||||||
DO_TEST("iothreads-disk", QEMU_CAPS_OBJECT_IOTHREAD);
|
DO_TEST("iothreads-disk", QEMU_CAPS_OBJECT_IOTHREAD);
|
||||||
DO_TEST("iothreads-disk-virtio-ccw", QEMU_CAPS_OBJECT_IOTHREAD,
|
DO_TEST("iothreads-disk-virtio-ccw", QEMU_CAPS_OBJECT_IOTHREAD,
|
||||||
QEMU_CAPS_CCW, QEMU_CAPS_VIRTIO_S390);
|
QEMU_CAPS_CCW, QEMU_CAPS_VIRTIO_S390);
|
||||||
DO_TEST("iothreads-virtio-scsi-pci", QEMU_CAPS_VIRTIO_SCSI,
|
DO_TEST_CAPS_LATEST("iothreads-virtio-scsi-pci");
|
||||||
QEMU_CAPS_OBJECT_IOTHREAD,
|
DO_TEST_CAPS_ARCH_LATEST("iothreads-virtio-scsi-ccw", "s390x");
|
||||||
QEMU_CAPS_VIRTIO_SCSI_IOTHREAD);
|
|
||||||
DO_TEST("iothreads-virtio-scsi-ccw", QEMU_CAPS_OBJECT_IOTHREAD,
|
|
||||||
QEMU_CAPS_VIRTIO_SCSI, QEMU_CAPS_VIRTIO_SCSI_IOTHREAD,
|
|
||||||
QEMU_CAPS_CCW, QEMU_CAPS_VIRTIO_S390);
|
|
||||||
|
|
||||||
DO_TEST("cpu-topology1", NONE);
|
DO_TEST("cpu-topology1", NONE);
|
||||||
DO_TEST("cpu-topology2", NONE);
|
DO_TEST("cpu-topology2", NONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user