From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id 6EB825A0274; Wed, 12 Feb 2025 02:19:45 +0100 (CET) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH v17 0/8] Not-really-draft state migration Date: Wed, 12 Feb 2025 02:19:37 +0100 Message-ID: <20250212011945.657249-1-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: MYVAGIJCETVVT7F3I3E3A4KS2MUPOHRI X-Message-ID-Hash: MYVAGIJCETVVT7F3I3E3A4KS2MUPOHRI X-MailFrom: sbrivio@passt.top X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Still missing at this point: - filtering out non-established sockets - trivial: SACK_PERM and timestamps (I forgot, we don't support them guest-side but they're relevant for sockets) - reasonable error handling, including not failing a migration on the target when it's anyway too late, or not crashing if we can't bind() or connect() a socket - tests with half-closed sockets The new SELinux rule is still untested. David Gibson (2): migrate: Migrate guest observed addresses rampstream: Add utility to test for corruption of data streams Stefano Brivio (6): migrate: Skeleton of live migration logic Add interfaces and configuration bits for passt-repair vhost_user: Make source quit after reporting migration state tcp: Get bound address for connected inbound sockets too migrate: Migrate TCP flows test: Add migration tests Makefile | 14 +- conf.c | 43 +- contrib/selinux/passt.te | 2 +- epoll_type.h | 6 +- flow.c | 259 ++++++++++- flow.h | 8 + flow_table.h | 6 +- migrate.c | 309 +++++++++++++ migrate.h | 51 +++ passt.1 | 11 + passt.c | 21 +- passt.h | 15 + repair.c | 218 +++++++++ repair.h | 16 + tap.c | 65 +-- tcp.c | 886 +++++++++++++++++++++++++++++++++++- tcp_conn.h | 99 ++++ test/.gitignore | 1 + test/Makefile | 5 +- test/lib/layout | 55 ++- test/lib/setup | 138 +++++- test/lib/test | 48 ++ test/migrate/basic | 59 +++ test/migrate/bidirectional | 64 +++ test/migrate/iperf3_bidir6 | 58 +++ test/migrate/iperf3_in4 | 50 ++ test/migrate/iperf3_in6 | 58 +++ test/migrate/iperf3_out4 | 50 ++ test/migrate/iperf3_out6 | 58 +++ test/migrate/rampstream_in | 61 +++ test/migrate/rampstream_out | 55 +++ test/passt.mbuto | 5 +- test/rampstream-check.sh | 3 + test/rampstream.c | 142 ++++++ test/run | 29 ++ util.c | 62 +++ util.h | 30 ++ vhost_user.c | 67 +-- virtio.h | 4 - vu_common.c | 49 +- vu_common.h | 2 +- 41 files changed, 2977 insertions(+), 205 deletions(-) create mode 100644 migrate.c create mode 100644 migrate.h create mode 100644 repair.c create mode 100644 repair.h create mode 100644 test/migrate/basic create mode 100644 test/migrate/bidirectional create mode 100644 test/migrate/iperf3_bidir6 create mode 100644 test/migrate/iperf3_in4 create mode 100644 test/migrate/iperf3_in6 create mode 100644 test/migrate/iperf3_out4 create mode 100644 test/migrate/iperf3_out6 create mode 100644 test/migrate/rampstream_in create mode 100644 test/migrate/rampstream_out create mode 100755 test/rampstream-check.sh create mode 100644 test/rampstream.c -- 2.43.0