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=Oem3Pxcm; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 540C05A0272 for ; Wed, 05 Feb 2025 11:52:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1738752712; bh=eQte0TKn4FGhTCCqKKe9tqc7GoIuc4hK2wfWwdq6+gY=; h=From:To:Cc:Subject:Date:From; b=Oem3PxcmG6eq8JJZD+S4LnGs8YrnyAxYrdV5CtjhRTHkCucKsAF93wWqJcNMxMDL4 a0EzQi+CCjLNbXSth4uf0Z15hU4a6qHNSXHcHtkz8tVOqEmRhLUJdtu1bBngMwEPaZ QiSjpi2OI8lwuc1DaoArWmnpUkygdVLjNgNQ2s8R4E/PIRxqxZWubyC74E3QI5fxks ddRds+zrW6hrJzydxFXSX7BO0Iy5DfSzn7mPyIvc7ynh4DzVZnmG+7zFE7+EFZS7d3 afLtruYbkErG/HwiPKpT0c88Xr0RN0dVzzCc0OtqATkQXTh960aRG0Npaebie3YmGk 2k50MTyVwdEUw== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4Ynxr81hZzz4wnp; Wed, 5 Feb 2025 21:51:52 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v6 0/5] Draft state migration Date: Wed, 5 Feb 2025 21:51:54 +1100 Message-ID: <20250205105159.819680-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: ZZZMMHL5C3ZPU2LSNI3FB2PLKBVL5HEG X-Message-ID-Hash: ZZZMMHL5C3ZPU2LSNI3FB2PLKBVL5HEG 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: Here's a new version of the draft migration patches. This is essentially 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 | 287 ++++++++++++++++++++++++++++++++++++++ migrate.h | 54 ++++++++ passt.1 | 11 ++ passt.c | 14 +- passt.h | 15 ++ repair.c | 193 ++++++++++++++++++++++++++ repair.h | 16 +++ tap.c | 65 +-------- tcp.c | 380 +++++++++++++++++++++++++++++++++++++++++++++++++++ tcp_conn.h | 56 ++++++++ util.c | 62 +++++++++ util.h | 30 ++++ vhost_user.c | 69 +++------- virtio.h | 4 - vu_common.c | 49 +------ vu_common.h | 2 +- 21 files changed, 1425 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