From: Eric Blake <eblake@redhat.com>
To: guillaume vincke <guillaume.vincke@ovhcloud.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org,
Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>,
Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>
Subject: Re: [PATCH v4 3/3] iotests: Add coverage for NBD connect thread start delay
Date: Thu, 3 Dec 2026 09:53:51 -0600 [thread overview]
Message-ID: <axGOvSJdyXaI7YtA@redhat.com> (raw)
In-Reply-To: <eda279c9-f9e2-4277-83fa-a5f48bc1bc9b@ovhcloud.com>
On Thu, Dec 03, 2026 at 04:31:08PM +0100, guillaume vincke wrote:
> >
> > I'm impressed that you went ahead and basically implemented a
> > bare-bones TLS server just to test this. I don't know if it is worth
> > merging some of this implementation with
> > qemu-iotests/nbd-fault-injector.py to be more reusable across other
> > NBD TLS tests. Still, './run tests/qemu-iotests/check 297' (our
> > linter test) didn't complain about too much code repetition, so I'm
> > not going to hold up this series by insisting on such refactoring.
>
> I did not realize there was already an NBD server implementation in
> tests. Changing it to support TLS will be quite a refactor though. Would
> it be fine to implement that as a follow up? It could also address your
> next point.
No rush on refactoring nbd-fault-injector.py. I've had some of my
recent NBD CVE patches where I also looked at whether it was worth
refactoring the existing server or just implementing a bare-bones
one-shot second server for the bug in question (although with
plaintext, rather than with the additional complication of TLS). And
so far my answer has also been that a one-shot server per test (as you
did in this patch) is good enough.
True, we may be building up technical debt, where consolidating things
into a more parameterized single server that can meet the needs of
multiple tests would avoid duplication. But that refactoring costs
more engineering effort, and that is effort spent on a unit test
rather than on QEMU proper. So delaying to a later follow up series,
or not ever doing the refactoring, are both viable answers - I already
am at the point where I don't want to hold up THIS series by insisting
on such a refactoring, and I'm also trying to be explicit that I am
not demanding you volunteer for that as a follow up task (but if you
DO volunteer, I won't ignore the effort).
I am a bit worried that doing such a refactor (if we choose to) will
be easier with LLM tooling - but until the QEMU policy on LLM
contributions is more permissive, kicking the can of whether to
refactor to a point down the road is not hurting us.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization: qemu.org | libguestfs.org
prev parent reply other threads:[~2026-12-03 15:54 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 12:44 [PATCH v4 0/3] nbd/client-connection: Fix client returning a closed channel Guillaume Vincke
2026-11-30 12:44 ` [PATCH v4 1/3] " Guillaume Vincke
2026-12-01 17:14 ` Daniel P. Berrangé
2026-12-03 12:57 ` guillaume vincke
2026-12-03 16:02 ` Daniel P. Berrangé
2026-12-03 17:17 ` guillaume vincke
2026-12-03 17:29 ` Daniel P. Berrangé
2026-12-03 17:31 ` Eric Blake
2026-11-30 12:44 ` [PATCH v4 2/3] nbd/client-connection: Fix client returning a closed TLS channel Guillaume Vincke
2026-12-01 16:23 ` Eric Blake
2026-11-30 12:44 ` [PATCH v4 3/3] iotests: Add coverage for NBD connect thread start delay Guillaume Vincke
2026-12-01 17:05 ` Eric Blake
2026-12-03 15:31 ` guillaume vincke
2026-12-03 15:53 ` Eric Blake [this message]
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=axGOvSJdyXaI7YtA@redhat.com \
--to=eblake@redhat.com \
--cc=guillaume.vincke@ovhcloud.com \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=vsementsov@yandex-team.ru \
/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.