From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Thomas Huth <thuth@redhat.com>
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
qemu-devel@nongnu.org, "Stefan Hajnoczi" <stefanha@redhat.com>,
"David Hildenbrand" <david@redhat.com>
Subject: Re: [PULL 10/15] tests/functional: fix race in virtio balloon test
Date: Fri, 7 Mar 2025 12:45:34 +0000 [thread overview]
Message-ID: <Z8rqbvqCVVuSPw90@redhat.com> (raw)
In-Reply-To: <1d1756d1-e16c-474d-b220-05829a2a8ab3@redhat.com>
On Fri, Mar 07, 2025 at 01:39:17PM +0100, Thomas Huth wrote:
> On 07/03/2025 13.34, Philippe Mathieu-Daudé wrote:
> > Hi Thomas, Daniel,
> >
> > On 7/3/25 12:53, Thomas Huth wrote:
> > > From: Daniel P. Berrangé <berrange@redhat.com>
> > >
> > > There are two race conditions in the recently added virtio balloon
> > > test
> > >
> > > * The /dev/vda device node is not ready
> > > * The virtio-balloon driver has not issued the first stats refresh
> > >
> > > To fix the former, monitor dmesg for a line about 'vda'.
> > >
> > > To fix the latter, retry the stats query until seeing fresh data.
> > >
> > > Adding 'quiet' to the kernel command line reduces serial output
> > > which otherwise slows boot, making it less likely to hit the former
> > > race too.
> > >
> > > Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> > > Message-ID: <20250304183340.3749797-1-berrange@redhat.com>
> > > Reviewed-by: Thomas Huth <thuth@redhat.com>
> > > Reviewed-by: David Hildenbrand <david@redhat.com>
> > > [thuth: Break long line to avoid checkpatch error]
> > > Signed-off-by: Thomas Huth <thuth@redhat.com>
> > > ---
> > > tests/functional/test_virtio_balloon.py | 26 ++++++++++++++++++++-----
> > > 1 file changed, 21 insertions(+), 5 deletions(-)
> >
> > This fix isn't really working, and is more of band-aid IIUC.
> >
> > With the following patch restricting to KVM accel, do we still want it merged?
>
> Yes, I think it still makes this test more robust.
Agreed, even though this patch isn't perfect it is definitely fixing two
clear race conditions.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2025-03-07 12:46 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-07 11:52 [PULL 00/15] Functional and s390x patches before 10.0 soft-freeze Thomas Huth
2025-03-07 11:53 ` [PULL 01/15] tests/functional: remove unused 'bin_prefix' variable Thomas Huth
2025-03-07 11:53 ` [PULL 02/15] tests/functional: set 'qemu_bin' as an object level field Thomas Huth
2025-03-07 11:53 ` [PULL 03/15] tests/functional: reduce tuxrun maxmem to work on 32-bit hosts Thomas Huth
2025-03-07 11:53 ` [PULL 04/15] tests/functional: skip memaddr tests on 32-bit builds Thomas Huth
2025-03-07 11:53 ` [PULL 05/15] tests/functional: drop unused 'get_tag' method Thomas Huth
2025-03-07 11:53 ` [PULL 06/15] tests/functional: stop output from zstd command when uncompressing Thomas Huth
2025-03-07 11:53 ` [PULL 07/15] tests/functional: Move the code for testing HTTP downloads to a common function Thomas Huth
2025-03-07 11:53 ` [PULL 08/15] tests/functional/test_mips_malta: Add a network test via the pcnet NIC Thomas Huth
2025-03-07 11:53 ` [PULL 09/15] tests/functional: Increase the timeout of the mips64el_replay test Thomas Huth
2025-03-07 11:53 ` [PULL 10/15] tests/functional: fix race in virtio balloon test Thomas Huth
2025-03-07 12:34 ` Philippe Mathieu-Daudé
2025-03-07 12:39 ` Thomas Huth
2025-03-07 12:42 ` Philippe Mathieu-Daudé
2025-03-07 12:45 ` Daniel P. Berrangé [this message]
2025-03-07 11:53 ` [PULL 11/15] tests/functional/test_virtio_balloon: Only use KVM for running this test Thomas Huth
2025-03-07 11:53 ` [PULL 12/15] doc: add missing 'Asset' type in function test doc Thomas Huth
2025-03-07 11:53 ` [PULL 13/15] MAINTAINERS: Add docs/devel/testing/functional.rst to the functional section Thomas Huth
2025-03-07 11:53 ` [PULL 14/15] s390x/pci: add support for guests that request direct mapping Thomas Huth
2025-03-07 11:53 ` [PULL 15/15] s390x/pci: indicate QEMU supports relaxed translation for passthrough Thomas Huth
2025-03-09 0:41 ` [PULL 00/15] Functional and s390x patches before 10.0 soft-freeze Stefan Hajnoczi
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=Z8rqbvqCVVuSPw90@redhat.com \
--to=berrange@redhat.com \
--cc=david@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=thuth@redhat.com \
/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.