From: "Michael S. Tsirkin" <mst@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Cc: jasowang@redhat.com, armbru@redhat.com, peterx@redhat.com,
farosas@suse.de, raphael.s.norwitz@gmail.com, bchaney@akamai.com,
qemu-devel@nongnu.org, berrange@redhat.com, pbonzini@redhat.com,
yc-core@yandex-team.ru, mark.caveayland@nutanix.com,
"Philippe Mathieu-Daudé" <philmd@mailo.com>,
"Zhao Liu" <zhao1.liu@intel.com>,
"Jason Wang" <jasowangio@gmail.com>,
"Eric Blake" <eblake@redhat.com>
Subject: Re: [PATCH v18 12/14] net/tap: support local migration with virtio-net
Date: Tue, 14 Jul 2026 15:24:25 -0400 [thread overview]
Message-ID: <20260714035132-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <449911ff-33cb-4fef-8dd2-33d8f3dc9620@yandex-team.ru>
On Tue, Jul 14, 2026 at 09:43:52AM +0300, Vladimir Sementsov-Ogievskiy wrote:
> On 13.07.26 22:36, Michael S. Tsirkin wrote:
> > On Fri, Jul 10, 2026 at 10:18:01PM +0300, Vladimir Sementsov-Ogievskiy wrote:
> > > Support transferring of TAP state (including open fd).
> > >
> > > Add new property "local-migration-supported", which defines
> > > whether local-migration is actually supported for this TAP device.
> > > Starting from 11.2 QEMU Machine Types it's enabled by default.
> > >
> > > Note, that local-migration (including migrating opened FDs
> > > through migration channel, which must be UNIX socket), is
> > > enabled by global "local" migration parameters. But individual
> > > devices may have additional options to enable/disable it
> > > per device.
> > >
> > > The tricky thing, is that we need to know, should we do
> > > call open/connect in TAP initialization code. That means,
> > > that on incoming migration we want to know status of
> > > "local" migration parameter at time of creating TAP device.
> > > So, currently, for incoming local migration only TAP device
> > > created through QMP is supported, as you need to set migration
> > > parameter first (through QMP as well).
> > >
> > > So the full picture is:
> > >
> > > On source, to start outgoing "local" migration you need:
> > >
> > > - migration parameter "local" set to true
> > > - "local-migration-supported" TAP option set to true (the
> > > default, starting from 11.2 QEMU Machine Types)
> > >
> > > If at least one of these options is not set, TAP backend
> > > doesn't participate in migration.
> > >
> > > On target, things are more difficult:
> > >
> > > Same, you need both "local" and "local-migration-supported"
> > > be set. And same, if one of them is not set, TAP backend
> > > is initialized as usual, and doesn't accept any incoming
> > > state.
> > >
> > > Additionally, if you are going to set "local", it must be
> > > set before creating the TAP device. If TAP device created
> > > with "local" unset, it initializes as usual. If you enable
> > > "local" after it and start incoming migration, it will fail
> > > in .pre_load handler of TAP backend.
> > >
> > > Moreover, there are interface restrictions: if you create TAP
> > > device when QEMU is in INCOMING state, and both "local"
> > > and "local-migration-supported" set, most of TAP options are
> > > not allowed, and script/downscript are required to be explicitly
> > > unset (set to "" or "no").
> > >
> > > Signed-off-by: Vladimir Sementsov-Ogievskiy<vsementsov@yandex-team.ru>
> >
> > I am still confused why is this per device. I just do not
> > see where is it useful to set it for some devices
> > but not others. So it looks like a machine property
> > "incoming local migration" to me?
> >
> > Sorry if I am being dense.
>
> 1. We need at least "per device class": when local-migration-support is
> implemented for some new device, we still need to migrate from/to older
> version without this support.
>
> Assume we have "local" migration parameter and support for TAP in 11.2.
> Then, in 12.0 support for vhost-user-blk is implemented. If we have only
> global "local" parameter, the migration will be broken between 11.2 and
> 12.0,
> with local=true, as in 11.2 it means only TAP local migration, but
> in 12.0 it means both TAP and vhost-user-blk local migration.
>
> Of course, now it's a bit redundant, as we have only TAP, and may define,
> that TAP is always supported (as support is introduced together with
> "local"). But there are another considerations:
If this is your way to version the behaviour, that is fine, but it should
be an internal property without ABI guarantees, starting with "x-".
>
> 2. Symmetry: if have a possiblity to disable feature only for vhost-user-blk,
> seems good to have same possibility for TAP.
>
> 3. Disabling fd-migration per device may be useful to switch this specific
> device to another backend.
Unclear what good is it, and the drawback is that it blows up the size
of our testing/support matrix.
> --
> Best regards,
> Vladimir
next prev parent reply other threads:[~2026-07-14 19:24 UTC|newest]
Thread overview: 46+ 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é
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-14 19:24 ` Michael S. Tsirkin [this message]
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=20260714035132-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=armbru@redhat.com \
--cc=bchaney@akamai.com \
--cc=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=farosas@suse.de \
--cc=jasowang@redhat.com \
--cc=jasowangio@gmail.com \
--cc=mark.caveayland@nutanix.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=philmd@mailo.com \
--cc=qemu-devel@nongnu.org \
--cc=raphael.s.norwitz@gmail.com \
--cc=vsementsov@yandex-team.ru \
--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.