From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202502 header.b=ZaSSRNzl; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 809B95A0272 for ; Mon, 10 Feb 2025 10:18:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1739179087; bh=Ex/gAdUk3K9OwyDWINBUldklNnnEtjlMjYVtKwKtC3M=; h=From:To:Cc:Subject:Date:From; b=ZaSSRNzl+Ejg3Fd3gCbC90d+6TnP6NsfV8YQ8wEJI93vfzYomxtWittBbHkUtnm9V GDht2UfQA0vnJXsy3C7JXqENebNBuert4Z067Zkgo/O0qL4zxdlAiffGLZUK4SCoHj dUON8WpzZ8RqFpDROzx0chb4JJnF8txc7Fb0GI8fJc3Mj6nNfOiaIUdTQ9AHabJisM VzOffTO5TEMzvfyldO+2o4QEkpotu9S8v07J2R+sOjfg2hTXJWbEcwUCjtHSRatD3Y SjpzwK0ANKZeecL2YZHcKGVLmiZ3Bm8Kpb7xvKxVVberfUZIluxWWHKz5l8jFKe7vO HTc4qDQZtzeCg== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4YrzWg4R2Jz4wcy; Mon, 10 Feb 2025 20:18:07 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v14 00/14] State migration Date: Mon, 10 Feb 2025 20:17:51 +1100 Message-ID: <20250210091805.2261228-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.48.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: I6GYREEBG27M7YOQF4Z6DZQTP5YUA6NN X-Message-ID-Hash: I6GYREEBG27M7YOQF4Z6DZQTP5YUA6NN X-MailFrom: dgibson@gandalf.ozlabs.org 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: Changes from v13: * Split shrinking of windows before migration to a separate patch * Added assorted fixups for small issues David Gibson (7): fixup: Remove unused iov field in struct migrate_stage migrate: Migrate guest observed addresses fixup: Reorder conf options fixup: Correctly type repair_cmd global fixup: Sanity check passt-repair reply message fixup: Don't close repair socket after first migration attempt fixup: Adjust conditions under which we quite after completing migration Stefano Brivio (7): migrate: Skeleton of live migration logic Add interfaces and configuration bits for passt-repair vhost_user: Make source quit after reporting migration state migrate: Migrate TCP flows fixup: Check for errors on repair mode rollback test: Add migration tests WIP: migrate, tcp: Shrink windows before migration Makefile | 14 +- conf.c | 44 ++- epoll_type.h | 6 +- flow.c | 250 ++++++++++++ flow.h | 8 + migrate.c | 307 +++++++++++++++ migrate.h | 51 +++ passt.1 | 11 + passt.c | 21 +- passt.h | 15 + repair.c | 218 ++++++++++ repair.h | 16 + tap.c | 65 +-- tcp.c | 788 +++++++++++++++++++++++++++++++++++++ tcp_conn.h | 95 +++++ test/lib/layout | 55 ++- test/lib/setup | 134 +++++++ test/lib/test | 48 +++ test/migrate/basic | 59 +++ test/migrate/bidirectional | 64 +++ test/migrate/iperf3_in4 | 50 +++ test/migrate/iperf3_in6 | 58 +++ test/migrate/iperf3_out4 | 50 +++ test/migrate/iperf3_out6 | 58 +++ test/run | 10 + util.c | 62 +++ util.h | 30 ++ vhost_user.c | 67 +--- virtio.h | 4 - vu_common.c | 49 +-- vu_common.h | 2 +- 31 files changed, 2524 insertions(+), 185 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_in4 create mode 100644 test/migrate/iperf3_in6 create mode 100644 test/migrate/iperf3_out4 create mode 100644 test/migrate/iperf3_out6 -- 2.48.1