qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* how do the iotests pick a machine model to run on ?
@ 2024-01-19 12:55 Peter Maydell
  2024-01-19 14:06 ` Kevin Wolf
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Maydell @ 2024-01-19 12:55 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Kevin Wolf, Hanna Reitz, Qemu-block

If you build QEMU with support for the sh4 target only
(configure --target-list=sh4-softmmu) then 'make check' fails
in the iotests, because some iotests, including for instance 040,
try to create a machine with a virtio-scsi device, but they don't
do anything to ensure that the machine they create actually
has a PCI bus to plug the virtio-scsi device into, and so the test
fails:

+Traceback (most recent call last):
+  File "/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/tests/qemu-iotests/040",
line 94, in setUp
+    self.vm.launch()
+  File "/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/python/qemu/machine/machine.py",
line 455, in launch
+    raise VMLaunchFailure(
+qemu.machine.machine.VMLaunchFailure: ConnectError: Failed to
establish session: EOFError
+       Exit code: 1
+       Command:
/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/sh4/qemu-system-sh4
-display none -vga none -chardev socket,id=mon,fd=5 -mon
chardev=mon,mode=control -chardev socket,id=qtest,fd=3 -qtest
chardev:qtest -accel qtest -nodefaults -display none -accel qtest
-drive if=none,id=drive0,file=/mnt/nvmedisk/linaro/qemu-from-laptop/qemu/build/sh4/scratch/qcow2-file-040/test.img,format=qcow2,cache=writeback,aio=threads,node-name=top,backing.node-name=mid,backing.backing.node-name=base
-device virtio-scsi -device scsi-hd,id=scsi0,drive=drive0
+       Output: [I 0.000000] OPENED
+qemu-system-sh4: -device virtio-scsi: No 'PCI' bus found for device
'virtio-scsi-pci'

(It happens that the default machine type for 'sh4'
does not have a PCI bus.)

How are the iotests supposed to select a machine model to run
on, and how are they intended to mark themselves as requiring
particular facilities, like PCI? Presumably some of the tests
are missing the appropriate annotations to ensure they're
skipped when the facilities required aren't present.

thanks
-- PMM


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-25 17:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-19 12:55 how do the iotests pick a machine model to run on ? Peter Maydell
2024-01-19 14:06 ` Kevin Wolf
2024-01-19 15:26   ` Peter Maydell
2024-01-19 16:18     ` Peter Maydell
2024-03-25 17:05       ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).