From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Cc: Markus Armbruster <armbru@redhat.com>,
jasowang@redhat.com, mst@redhat.com, peterx@redhat.com,
farosas@suse.de, raphael.s.norwitz@gmail.com, bchaney@akamai.com,
qemu-devel@nongnu.org, pbonzini@redhat.com,
yc-core@yandex-team.ru, mark.caveayland@nutanix.com,
Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>,
Sergio Lopez <slp@redhat.com>, Zhao Liu <zhao1.liu@intel.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Anthony PERARD <anthony@xenproject.org>,
"Edgar E. Iglesias" <edgar.iglesias@gmail.com>,
Bernhard Beschow <shentey@gmail.com>,
Alistair Francis <Alistair.Francis@wdc.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Jason Wang <jasowangio@gmail.com>, Eric Blake <eblake@redhat.com>,
"open list:Incompatible changes" <devel@lists.libvirt.org>,
"open list:X86 Xen CPUs" <xen-devel@lists.xenproject.org>,
"open list:e500" <qemu-ppc@nongnu.org>,
"open list:Microchip PolarFi..." <qemu-riscv@nongnu.org>
Subject: Re: [PATCH v18 03/14] net/tap: deprecate "no" as special value for script/downscript
Date: Mon, 13 Jul 2026 10:47:49 +0100 [thread overview]
Message-ID: <alS0RZqeyEOVy6e8@redhat.com> (raw)
In-Reply-To: <d1ea2c42-7990-4529-b9f8-d0d9e35ffd51@yandex-team.ru>
On Mon, Jul 13, 2026 at 12:37:54PM +0300, Vladimir Sementsov-Ogievskiy wrote:
> On 13.07.26 10:45, Markus Armbruster wrote:
> > Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> writes:
> >
> > > The interface is ambiguous, as "no" is valid file name. So,
> > > using "no" as a special value to disable script is deprecated.
> > > Use an empty string ("script=" / "downscript=") instead.
> > >
> > > In a future version, "no" will be treated as a plain file name, just
> > > like any other non-empty value.
> > >
> > > Document the deprecation in docs/about/deprecated.rst, qapi/net.json,
> > > and qemu-options.hx. Update other docs to use empty string instead of
> > > "no". Add a warning.
> > >
> > > Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
> >
> > [...]
> >
> > > diff --git a/net/tap.c b/net/tap.c
> > > index fedd48c48d2..1ec9e5ebe6f 100644
> > > --- a/net/tap.c
> > > +++ b/net/tap.c
> > > @@ -103,6 +103,8 @@ static bool tap_is_explicit_no_script(const char *script_arg)
> > > }
> > > if (strcmp(script_arg, "no") == 0) {
> > > + warn_report("script=no/downscript=no is deprecated; "
> > > + "use script=/downscript= instead");
> >
> > net_init_tap() could pass the parameter name for a simpler error
> > message. Probably not worth the bother.
> >
> > > return true;
> > > }
> >
> > In net_init_tap_one():
> >
> > qemu_set_info_str(&s->nc, "ifname=%s,script=%s,downscript=%s", ifname,
> > script ?: "no", downscript ?: "no");
> >
> > This sets nc->info_str, which is shown by "info network". Should we
> > replace "no" by ""?
> >
>
> Agree, will do.
Would it be better to not include the script/downscript parameters at
all if they're disabled ?
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
next prev parent reply other threads:[~2026-07-13 9:48 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-10 19:17 [PATCH v18 00/14] virtio-net: live-TAP local migration Vladimir Sementsov-Ogievskiy
2026-07-10 19:17 ` [PATCH v18 01/14] net/tap: rework tap_parse_script Vladimir Sementsov-Ogievskiy
2026-07-10 19:17 ` [PATCH v18 02/14] net/tap: improve script/downscript options documentation Vladimir Sementsov-Ogievskiy
2026-07-13 7:33 ` Markus Armbruster
2026-07-10 19:17 ` [PATCH v18 03/14] net/tap: deprecate "no" as special value for script/downscript Vladimir Sementsov-Ogievskiy
2026-07-13 7:45 ` Markus Armbruster
2026-07-13 9:37 ` Vladimir Sementsov-Ogievskiy
2026-07-13 9:47 ` Daniel P. Berrangé [this message]
2026-07-13 10:25 ` Vladimir Sementsov-Ogievskiy
2026-07-10 19:17 ` [PATCH v18 04/14] net/tap: move vhost-net open() calls to tap_parse_vhost_fds() Vladimir Sementsov-Ogievskiy
2026-07-10 19:17 ` [PATCH v18 05/14] net/tap: move vhost initialization to tap_setup_vhost() Vladimir Sementsov-Ogievskiy
2026-07-10 19:17 ` [PATCH v18 06/14] net/tap: use container_of instead of DO_UPCAST Vladimir Sementsov-Ogievskiy
2026-07-10 19:17 ` [PATCH v18 07/14] net/tap: QOMify tap backend Vladimir Sementsov-Ogievskiy
2026-07-10 19:17 ` [PATCH v18 08/14] net/tap: add TYPE_VMSTATE_IF interface Vladimir Sementsov-Ogievskiy
2026-07-10 19:17 ` [PATCH v18 09/14] qapi: add local migration parameter Vladimir Sementsov-Ogievskiy
2026-07-13 9:51 ` Daniel P. Berrangé
2026-07-13 10:55 ` Vladimir Sementsov-Ogievskiy
2026-07-13 11:21 ` Daniel P. Berrangé
2026-07-13 17:55 ` Vladimir Sementsov-Ogievskiy
2026-07-13 18:37 ` Daniel P. Berrangé
2026-07-13 20:22 ` Michael S. Tsirkin
2026-07-14 6:50 ` Vladimir Sementsov-Ogievskiy
2026-07-14 8:03 ` Michael S. Tsirkin
2026-07-14 8:04 ` Vladimir Sementsov-Ogievskiy
2026-07-14 7:55 ` Daniel P. Berrangé
2026-07-14 8:02 ` Michael S. Tsirkin
2026-07-14 8:18 ` Daniel P. Berrangé
2026-07-14 6:45 ` Vladimir Sementsov-Ogievskiy
2026-07-10 19:17 ` [PATCH v18 10/14] virtio-net: support local migration of backend Vladimir Sementsov-Ogievskiy
2026-07-10 19:18 ` [PATCH v18 11/14] net/tap: disable read polling for stopped VM Vladimir Sementsov-Ogievskiy
2026-07-10 19:18 ` [PATCH v18 12/14] net/tap: support local migration with virtio-net Vladimir Sementsov-Ogievskiy
2026-07-13 7:57 ` Markus Armbruster
2026-07-13 11:51 ` Vladimir Sementsov-Ogievskiy
2026-07-13 13:29 ` Markus Armbruster
2026-07-13 15:08 ` Vladimir Sementsov-Ogievskiy
2026-07-14 13:19 ` Michael S. Tsirkin
2026-07-14 14:30 ` Vladimir Sementsov-Ogievskiy
2026-07-13 11:17 ` Daniel P. Berrangé
2026-07-13 12:35 ` Vladimir Sementsov-Ogievskiy
2026-07-13 15:05 ` Daniel P. Berrangé
2026-07-13 15:19 ` Vladimir Sementsov-Ogievskiy
2026-07-13 19:36 ` Michael S. Tsirkin
2026-07-14 6:43 ` Vladimir Sementsov-Ogievskiy
2026-07-10 19:18 ` [PATCH v18 13/14] tests/functional: add skipWithoutSudo() decorator Vladimir Sementsov-Ogievskiy
2026-07-10 19:18 ` [PATCH v18 14/14] tests/functional: add test_tap_migration Vladimir Sementsov-Ogievskiy
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=alS0RZqeyEOVy6e8@redhat.com \
--to=berrange@redhat.com \
--cc=Alistair.Francis@wdc.com \
--cc=anthony@xenproject.org \
--cc=armbru@redhat.com \
--cc=bchaney@akamai.com \
--cc=devel@lists.libvirt.org \
--cc=eblake@redhat.com \
--cc=edgar.iglesias@gmail.com \
--cc=farosas@suse.de \
--cc=jasowang@redhat.com \
--cc=jasowangio@gmail.com \
--cc=mark.caveayland@nutanix.com \
--cc=mst@redhat.com \
--cc=palmer@dabbelt.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=pierrick.bouvier@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=raphael.s.norwitz@gmail.com \
--cc=shentey@gmail.com \
--cc=slp@redhat.com \
--cc=sstabellini@kernel.org \
--cc=vsementsov@yandex-team.ru \
--cc=xen-devel@lists.xenproject.org \
--cc=yc-core@yandex-team.ru \
--cc=zhao1.liu@intel.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.