All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
	 Peter Maydell <peter.maydell@linaro.org>
Subject: Re: virtio-pci in qemu-system-arm is broken in 8.2
Date: Thu, 21 Dec 2023 18:18:12 +0000	[thread overview]
Message-ID: <87frzvzafv.fsf@draig.linaro.org> (raw)
In-Reply-To: <90d7351c-2680-4ab6-95ee-5dac4e3f21c5@tls.msk.ru> (Michael Tokarev's message of "Thu, 21 Dec 2023 14:51:38 +0300")

Michael Tokarev <mjt@tls.msk.ru> writes:

> It looks like virtio-pci is entirely broke in qemu-system-arm, at least in tcg
> mode running on x86.  The guest (current linux system) just does not detect
> any virtio-pci devices at all.
>
> When 8.1 is booting, the following messages are displayed (debian initramfs):
>
> Loading, please wait...
> Starting systemd-udevd version 255-1
> [    6.455941] virtio-pci 0000:00:01.0: enabling device (0100 -> 0103)
> [    6.929155] virtio-pci 0000:00:02.0: enabling device (0100 -> 0103)
> [    7.764652] virtio_blk virtio1: 2/0/0 default/read/poll queues
> [    7.783216] virtio_blk virtio1: [vda] 2097026 512-byte logical blocks (1.07 GB/1024 MiB)
> [    8.636453] virtio_net virtio0 enp0s1: renamed from eth0
>
> But when 8.2 is booting, it ends up at:
>
> Loading, please wait...
> Starting systemd-udevd version 255-1
> ..and nothing.  here it waits for the root fs to appear, and drops into the shell
>
> git bisect points at this commit:
>
> commit b8f7959f28c4f36496bc0a694fa28bf5078152c5
> Author: Peter Maydell <peter.maydell@linaro.org>
> Date:   Mon Jul 24 18:43:33 2023 +0100
>
>     target/arm: Do all "ARM_FEATURE_X implies Y" checks in post_init
>
> Reverting this commit on top of 8.2.0 (or current qemu master)
> makes things works again.
>
> It's interesting how we missed this out entirely, as it's been applied
> at the beginning of 8.2 development cycle, it's 228th commit after
> 8.1.0.
>
> It looks like we've quite a bit more regressions like this in 8.2.0..
> :(

We have at least one test that does use virtio-pci on qemu-system-arm
and passes. From:

  ./pyvenv/bin/avocado run ./tests/avocado --filter-by-tags=arch:arm

We can see:

  grep "virtio" /home/alex/avocado/job-results/job-2023-12-21T18.11-8dc03b2/job.log | grep pci
  2023-12-21 18:14:31,294 machine          L0470 DEBUG| VM launch command: './qemu-system-arm -display none -vga none -chardev socket,id=mon,fd=5 -mon chardev=mon,mode=control -machine versatilepb -chardev socket,id=console,fd=19 -serial chardev:console -cpu arm926 -kernel /home/alex/avocado/data/cache/by_location/a8e6fbd14f0270fef06aaef9fc413c5a6ed71120/zImage -append printk.time=0 root=/dev/vda console=ttyAMA0 -blockdev driver=raw,file.driver=file,file.filename=/home/alex/avocado/job-results/job-2023-12-21T18.11-8dc03b2/test-results/tmp_dir1mqewwjv/40-._tests_avocado_tuxrun_baselines.py_TuxRunBaselineTest.test_armv5/rootfs.ext4,node-name=hd0 -device virtio-blk-pci,drive=hd0 -dtb /home/alex/avocado/data/cache/by_location/a8e6fbd14f0270fef06aaef9fc413c5a6ed71120/versatile-pb.dtb'
  2023-12-21 18:14:31,722 __init__         L0153 DEBUG| virtio-pci 0000:00:0d.0: enabling device (0100 -> 0103)

But obviously not enough coverage to catch this regression. 

>
> /mjt

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


  reply	other threads:[~2023-12-21 18:19 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-21 11:51 virtio-pci in qemu-system-arm is broken in 8.2 Michael Tokarev
2023-12-21 18:18 ` Alex Bennée [this message]
2023-12-21 22:00   ` Alex Bennée
2024-01-04 14:09     ` Peter Maydell
2024-01-04 14:31       ` Peter Maydell
2024-01-04 14:41 ` Peter Maydell
2024-01-04 16:25   ` Michael Tokarev
2024-01-04 17:17     ` Michael Tokarev
2024-01-05 14:09       ` Peter Maydell
2024-01-08 17:07       ` Peter Maydell
2024-01-08 17:38         ` Michael Tokarev
2024-01-09 11:33           ` Peter Maydell
2024-01-09 13:52             ` Peter Maydell
2024-01-09 14:21               ` Alex Bennée
2024-01-09 14:31                 ` Peter Maydell
2024-01-09 15:03                   ` Alex Bennée
2024-01-09 16:26                   ` Eric Auger
2024-01-09 16:24               ` Michael Tokarev
2024-01-09 16:31                 ` Peter Maydell
2024-01-09 16:41                   ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87frzvzafv.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=mjt@tls.msk.ru \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.