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=AgsKBjll; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 851855A0272 for ; Wed, 05 Feb 2025 12:55:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1738756509; bh=MNkhSmuszAqfV5MvuBTlYDhbJsVmK4YrpHtC1vFKZec=; h=From:To:Cc:Subject:Date:From; b=AgsKBjllCXqzCtCuzT3Rlxd1iljuQ5NC5Hv7X0DPrfnX6YFuQS+8KXVKMUpWEWOVM 2OiXstiaNRqghuzKvPndZvZWME7Wk1W/G/k9iOcZ8BzISOIfKEtrMxO16kJhrflWp/ ob4sOaqB+F4yRcYrsyqm3S+Ni/LgVS6PJNTZ5hxICbpoLCnlWUKaR21clCVrAHVlSD N92evSyWbCiQhXaqeAdjiuURD++6jzdjGcWeE9LIAZH5dOo8c89ZgNavYJiitcbro+ fDl+Ess+Gl8c+cHu/e4UirWB4OyR4Eqx1D2Ch4se+BpFF0RGDge4NU8SCHm5JmEfnF Vd5eI4jmiOYqA== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4YnzF9046dz4wcl; Wed, 5 Feb 2025 22:55:09 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH v7 0/5] Draft state migration Date: Wed, 5 Feb 2025 22:55:11 +1100 Message-ID: <20250205115516.843610-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: MPVD2LKPTGZ7BUJLKF32V3Z7MRU6YRMT X-Message-ID-Hash: MPVD2LKPTGZ7BUJLKF32V3Z7MRU6YRMT 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 v6: * Several fixes to TCP state handling from Stefano * Added a compat_version field to the header allowing us to make backward compatible encoding changes in future. v6 was a fairly basic clean up of Stefano's v5. Changes include: * First several patches merged together * Some fixes moved out of the TCP/flow patch and into earlier patches * versions[] array now ordered most recent to least recent (which simplifies some things) * Removed some stale changes * Added some extra error reporting * Assorted other minor cleanups David Gibson (1): migrate: Hack for late migration fixups Stefano Brivio (4): 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 Makefile | 14 +- conf.c | 44 +++++- epoll_type.h | 6 +- flow.c | 226 ++++++++++++++++++++++++++++++ flow.h | 7 + migrate.c | 290 +++++++++++++++++++++++++++++++++++++++ migrate.h | 57 ++++++++ passt.1 | 11 ++ passt.c | 14 +- passt.h | 15 ++ repair.c | 193 ++++++++++++++++++++++++++ repair.h | 16 +++ tap.c | 65 +-------- tcp.c | 381 +++++++++++++++++++++++++++++++++++++++++++++++++++ tcp_conn.h | 58 ++++++++ util.c | 62 +++++++++ util.h | 30 ++++ vhost_user.c | 69 +++------- virtio.h | 4 - vu_common.c | 49 +------ vu_common.h | 2 +- 21 files changed, 1434 insertions(+), 179 deletions(-) create mode 100644 migrate.c create mode 100644 migrate.h create mode 100644 repair.c create mode 100644 repair.h -- 2.48.1