04.01.2024 17:41, Peter Maydell wrote:
..
Can you provide a complete repro case including full command
line and all image files needed to run it, please?

Sure, please excuse me for not doing this at the very beginning.
The test is just standard debian kernel+initrd (I used sid/unstable
kernel, but it looks like bookworm kernel also "works").

http://www.corpit.ru/mjt/tmp/virtio-arm.tar.gz

this archive contains kernel+initrd.  I run it this way:

qemu-system-arm -append root=LABEL=debvm -nographic -machine type=virt \
 -drive media=disk,format=raw,file=vmlinuz,if=virtio,snapshot=on \
 -no-user-config -m 1G -kernel vmlinuz -initrd initrd.img

Note "vmlinuz" file is used as both kernel and a hdd image, -
this is just to have at least one virtio device.  Obviously
with such a setup, guest will not find its root fs, but it
will (or not, in the problematic/buggy case) load the virtio
modules.

When run under qemu-system-arm v8.2.0, no virtio drivers are
loaded.

/mjt

Reply via email to