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=G+da6HKx; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 091725A0276 for ; Thu, 06 Feb 2025 06:50:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1738820984; bh=JUpdIrYVjtNAYx9UoNkI94Gx1eNvDhaneffVb5OB3jM=; h=From:To:Cc:Subject:Date:From; b=G+da6HKxQfAsmuepNoFhc/HH84TeUNNOWIQ92DQep2vO3JiH/dKjDV+qG3jAlGSgt N538+rJtWuNRpIS3xM5YvNkU6Lt7NT2XRa3HgPlYaJnIaAkqHUHg8mlJAhGvrckBG2 CAbUJxeKV6TttfSc93SNv4p0rUpi9EX5d6xXeeLySL62JOd6ky+3uq94i1u6BOTQP8 1W9Zcfa92gUkwMQ6KA8M1QJZ33+Py6yZTPA3lEtNGHE1K83zES8Tti2OQBwElVZZV+ pw+HyZGbG8t19FDzkZlj0uI4tXvdmXbqhMie/OMAku0/NVIpWhcyAAgedZhXztMRCK aAlJlBhUw71fg== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4YpR543ST9z4wnp; Thu, 6 Feb 2025 16:49:44 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH v10 00/10] Draft state migration Date: Thu, 6 Feb 2025 16:49:41 +1100 Message-ID: <20250206054951.1041610-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: BNP3O3RD7T2PACUVJAJ3Y6Z4C7WGUPRX X-Message-ID-Hash: BNP3O3RD7T2PACUVJAJ3Y6Z4C7WGUPRX 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 v9: * Assorted minor cleanups * cppcheck and clang-tidy fixes * Set SO_PEEK_OFF properly on the target * Migrate addr_seen and friends Minor changes, I've just folded into the existing patches. More major things are separate patches. Those marked "fixup" I think should be folded into the previous patch before merge, but are separate now to make it clearer what I'm doing. David Gibson (5): debug: Add tcpdump to mbuto.img fixup: Fix errors in modes that don't support migration migrate: Migrate guest observed addresses migrate: Hack for late migration fixups fixup: Reset SO_PEEK_OFF value after incoming migration Stefano Brivio (5): 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 test: Add migrate/basic tests Makefile | 14 +- conf.c | 44 ++++- epoll_type.h | 6 +- flow.c | 201 +++++++++++++++++++ flow.h | 6 + migrate.c | 291 ++++++++++++++++++++++++++++ migrate.h | 57 ++++++ passt.1 | 11 ++ passt.c | 15 +- passt.h | 15 ++ repair.c | 192 +++++++++++++++++++ repair.h | 16 ++ tap.c | 65 +------ tcp.c | 466 +++++++++++++++++++++++++++++++++++++++++++++ tcp_conn.h | 60 ++++++ test/lib/layout | 55 +++++- test/lib/setup | 127 ++++++++++++ test/lib/test | 3 + test/migrate/basic | 54 ++++++ test/passt.mbuto | 3 +- test/run | 4 + util.c | 62 ++++++ util.h | 30 +++ vhost_user.c | 70 ++----- virtio.h | 4 - vu_common.c | 49 +---- vu_common.h | 2 +- 27 files changed, 1741 insertions(+), 181 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 -- 2.48.1