From: Stefano Brivio <sbrivio@redhat.com>
To: Volker Diels-Grabsch <v@njh.eu>
Cc: David Gibson <david@gibson.dropbear.id.au>, passt-dev@passt.top
Subject: Re: [PATCH v2] Send an initial ARP request to resolve the guest IP address
Date: Tue, 9 Sep 2025 17:55:30 +0200 [thread overview]
Message-ID: <20250909175530.7fc950bc@elisabeth> (raw)
In-Reply-To: <aL_9JTpmc5SH1O_k@6153f789-1cf1-4ca3-8cea-6fa7ae195a8b.njh.eu>
On Tue, 9 Sep 2025 12:10:45 +0200
Volker Diels-Grabsch <v@njh.eu> wrote:
> David Gibson wrote:
> > Looks good to me. It would be nice to also send an Neighbour
> > Discovery request to accomplish the same thing for IPv6 only guests,
> > but that could be a separate patch.
>
> Good point! I'd prefer to do it in the same patch, as I'd also like
> fix another minor detail in this one.
>
> Just for the sake of clarity: I had a look at RFC4861 and there are
> many types of Neighbour Discovery requests. For our purpose, I believe
> that we want to send a "Neighbor Solicitation Message" described in
> section 4.3:
>
> https://datatracker.ietf.org/doc/html/rfc4861#section-4.3
>
> Do you agree, or did you have something else in mind?
I was about to comment on this, but from the new patch you sent, I see
you already figured out it's a Neighbour Solicitation and that we
already have some bits of code for that. :)
> > Note that even with this patch, active TCP connections (and in some
> > cases UDP flows) will be broken by a passt restart.
>
> Indeed, that is unavoidable for a user-space tool opening TCP and UDP
> connections, I guess, unless "passt" itself is wrapped into another
> process or system tool that keeps those connections open. But let's
> not go into that.
Actually, it's not really unavoidable, in the sense that we recently
added (see migrate.c, repair.c, passt-repair.c, and passt-repair(1))
support for migration of live TCP connections triggered by vhost-user
commands:
https://qemu-project.gitlab.io/qemu/interop/vhost-user.html#migrating-back-end-state
which is based on the TCP_REPAIR socket option in the Linux kernel,
which was in turn added to support a similar feature in CRIU:
https://criu.org/TCP_connection
and while this was done with KubeVirt in mind:
https://github.com/kubevirt/enhancements/blob/main/veps/sig-network/passt/passt-migration-proposal.md
that is, migration between two different nodes / hosts, there's nothing
that really prevents migration between two instances of passt via, for
example, load/dump from/to a binary file.
Actually, we initially wanted to add the file option for testing
purposes, but we skipped it eventually and went straight ahead for the
direct implementation.
Some bits of "documentation":
git log migrate.c
test/migrate/basic
...yes, a new website with some space for this stuff is in
(infinitesimally slow) progress.
--
Stefano
next prev parent reply other threads:[~2025-09-09 15:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-07 11:01 [PATCH] " Volker Diels-Grabsch
2025-09-08 4:00 ` David Gibson
2025-09-08 9:12 ` [PATCH v2] " Volker Diels-Grabsch
2025-09-08 9:22 ` Volker Diels-Grabsch
2025-09-09 2:52 ` David Gibson
2025-09-09 10:10 ` Volker Diels-Grabsch
2025-09-09 14:49 ` Volker Diels-Grabsch
2025-09-09 14:49 ` [PATCH] Send an initial ARP and NDP request to resolve the guest IP address Volker Diels-Grabsch
2025-09-10 3:32 ` David Gibson
2025-09-10 9:29 ` Stefano Brivio
2025-09-10 10:33 ` Volker Diels-Grabsch
2025-09-10 14:01 ` Stefano Brivio
2025-09-09 15:55 ` Stefano Brivio [this message]
2025-09-10 3:33 ` [PATCH v2] Send an initial ARP " David Gibson
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=20250909175530.7fc950bc@elisabeth \
--to=sbrivio@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=v@njh.eu \
/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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).