From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9226CC0219B for ; Sat, 8 Feb 2025 01:38:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2A4A1280005; Fri, 7 Feb 2025 20:38:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 27AE1280004; Fri, 7 Feb 2025 20:38:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 169D2280005; Fri, 7 Feb 2025 20:38:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id EE793280004 for ; Fri, 7 Feb 2025 20:38:49 -0500 (EST) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id B5DF4A12D1 for ; Sat, 8 Feb 2025 01:38:49 +0000 (UTC) X-FDA: 83095068378.26.0CD331A Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf04.hostedemail.com (Postfix) with ESMTP id 702A44000B for ; Sat, 8 Feb 2025 01:38:46 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=E6gWZsu+; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf04.hostedemail.com: domain of bhe@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1738978726; a=rsa-sha256; cv=none; b=QHNKqud5mmCCCCr0KbteGMa+HpHlsxhhdWZZKNn/NQzIMQE8DViciTRWYGTPWzDM9ZIqRs zVmpSLAuHgMmJARbyRS5rrzSHAD99xJZFsUbjkOUebtJ+52YEugze2yzfvjLojjJECLrXa /PkONQyxtGnBo3kPbj55BloxdVZcgmo= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=E6gWZsu+; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf04.hostedemail.com: domain of bhe@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1738978726; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=4OGpJKlqYKJlS0pLuHn983Uuh5n9DtUrxuwcndbRF+g=; b=mvZCxxL9M5TYb1QIAhtWd5xRTDH+MLM6o1nm5EOUx6hcKgGNKm7pAoIqRysxCFOVDTJ01Y e4Tj1DxdoPWAeNPgG2SOzfbcpnVCwsUaVJlX0vplHnzQ94QqXRtzwNsc+Ry6y90WPKK0sC ireSP+MhgB3xCBLeNggMyct4ju0MdMY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1738978725; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4OGpJKlqYKJlS0pLuHn983Uuh5n9DtUrxuwcndbRF+g=; b=E6gWZsu+36TGo6CxBCuxK/KU0QOuFzlIS8NCLaALobr/rETVpkZjPAV0tfK6tgDpsaTkNx 1KluWd57+r8+QoFfiIIkBW5jWgN7jfWPLL3oBvs5P3qNV32R4SgMFfW+P4mnN/zgyjI5iG AYAJKYUn25NcQ43fl4TAi0ND3ekQExk= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-692-CGeBAf_OMfe2Z_xYLc2IJA-1; Fri, 07 Feb 2025 20:38:42 -0500 X-MC-Unique: CGeBAf_OMfe2Z_xYLc2IJA-1 X-Mimecast-MFC-AGG-ID: CGeBAf_OMfe2Z_xYLc2IJA Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4EE0C1956094; Sat, 8 Feb 2025 01:38:36 +0000 (UTC) Received: from localhost (unknown [10.72.112.20]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CBBC7180087A; Sat, 8 Feb 2025 01:38:32 +0000 (UTC) Date: Sat, 8 Feb 2025 09:38:27 +0800 From: Baoquan He To: Pasha Tatashin Cc: Andrew Morton , Mike Rapoport , linux-kernel@vger.kernel.org, Alexander Graf , Andy Lutomirski , Anthony Yznaga , Arnd Bergmann , Ashish Kalra , Benjamin Herrenschmidt , Borislav Petkov , Catalin Marinas , Dave Hansen , David Woodhouse , Eric Biederman , Ingo Molnar , James Gowans , Jonathan Corbet , Krzysztof Kozlowski , Mark Rutland , Paolo Bonzini , "H. Peter Anvin" , Peter Zijlstra , Pratyush Yadav , Rob Herring , Rob Herring , Saravana Kannan , Stanislav Kinsburskii , Steven Rostedt , Thomas Gleixner , Tom Lendacky , Usama Arif , Will Deacon , devicetree@vger.kernel.org, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, changyuanl@google.com Subject: Re: [PATCH v4 00/14] kexec: introduce Kexec HandOver (KHO) Message-ID: References: <20250206132754.2596694-1-rppt@kernel.org> <20250206162939.a1f86fb835f1eeb7ed73ff1c@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 702A44000B X-Stat-Signature: b6hrqikgqdasijqxjpzz6stfmyncb3fh X-Rspam-User: X-HE-Tag: 1738978726-724418 X-HE-Meta: U2FsdGVkX18KvLSMqz/X/onB7g8ki8qmTLnjIicXIpkY/Tjw3VdBsiWgKiEe3Sm4UQFvuV3BgPxU4EWUazIWNUe8AZ+Km/jsvDvuTpGB4jxzO2dNjgiVl6hv3BVQ/N4F7J4yChCtrAY5Tlc3Q2hvT5PZ1LSJYiY14pipjnX3Vw82Cz/3I6C6RmpyjanD5jdbsESJXACtxRbA4e+tiaEEtunNw9HDLe4RLsARcODNR2/fkuOrbS5bXnfbW4H7whLjte8PspOcujdTev6gmXedvMBfwItcPCELWHo7HJwvmN1SjY8r3VhGXTCqJZJSsuvc8jvvnLIvg8mjYi0FDfQHk2jK/LjoaHxd/Qly+uS8r9mlNSneD3eRC1Kgu3eYtQZuMBYmq+JlR7PxQL6nzDG3afTlioNDGEfS9eDebTAp7LWeMVZNPxHzZajgO75a8kyE6Cj4KdQSmC+aa5b0H+ymwGd9KWteTf/yYrnQ5a6eKS7BhdVkPm9JW2MMO45KmM/t7yLQCtTozczfbyOVgzNiJD/4zUtTdc5vwt4sTTG7z6VF+eQ5K8lajEN//rQRjppKxFrUtynOwJq2q6f6jnXOO8Gxx4xURKUKqZzc0YsNEJAMpeArcaizqldJ8Z6LJOiIpS/ICKHMAoFs37aXhCd+J2ZyVckfIH7389VpszPRdo3Z1jd2fr5xmTeBepsWFFKvx9n5lsepK7ggoFV2RHzWAyvhhT+JyUKiaTgDKfhjtmBiLskCFeLyI+f3mdU/DUbYxp1ujT4DaOT4wcOlPXP6vuh+8GBS7wgZ58iRQSjfA85IqEhDo4Gn7tE4XxZdZO2mD8foPSN6J7eoaw7FQUiJ0ySyGM8hUAK+b5ZqBBD2NFAYoYi0E5mR1LuMAjdqlxWAbc3CQFOpINfHE5W2SD2VlHskVLSkKTJbGYK0fs9QVeKIq3HERGJk0OPUkC/OkqIwY+96vqSZu24u7u63TFY jXQyFH5v Z8lH6RUtkOJtabX3t3EwA/ifz0JL0dtxFqZve8oYCy5wY+Vu6CqPguSvUAOBsC1t12aVEITfVHi9mtD0D+vbdl/V3k4suiWNfdErsqA3JPil96n1lOV1k+XNLvnw2HjymYyV8CleDhzl/60xFBAZK6Onl4uZrFmhR2bHulu/+bOOvRZUCtIeETluNsmU86FqFrpM+VQws7lJVE8XNjDjI0RthQvMtYha/gw7WVMsowPiUuqtPthVFYAfTW2UTu2uTCYNfAWsMrCNCjmeqyZAxiC5cf3Qh8+JOtpyOxrf7lIjJ/eeFZAOqksrnbFKnllfMFeccn2dvLyVi4/a+sCzMu01NFzXhE1IheMyM7Vm34cj8+Sa2J8WknDTsc2UR4We14sN11VpqTbIGvH7BLm2ac3wqWKNjjv+AhM6sTlAiymLV4kR1C/8O0/xJ3Je/XmqcZ6xhIJnRSQqy7H8jC3XVRXTTF44rcv2vC9z9GeZhPa/eeRkkvDH+UV6/UkGKJbj77+y7a8jp+oxZoIA9Dsicwxj4ozLy4k7u+QsfLxHr6FMvhMxi/GS9KpBMSL3zfEkw4Hc0qflnM9QePIM4PvbTeziBOihS2ctyg9Wi X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On 02/06/25 at 08:28pm, Pasha Tatashin wrote: > On Thu, Feb 6, 2025 at 7:29 PM Andrew Morton wrote: > > > > On Thu, 6 Feb 2025 15:27:40 +0200 Mike Rapoport wrote: > > > > > This a next version of Alex's "kexec: Allow preservation of ftrace buffers" > > > series (https://lore.kernel.org/all/20240117144704.602-1-graf@amazon.com), > > > just to make things simpler instead of ftrace we decided to preserve > > > "reserve_mem" regions. > > > > > > The patches are also available in git: > > > https://git.kernel.org/rppt/h/kho/v4 > > > > > > > > > Kexec today considers itself purely a boot loader: When we enter the new > > > kernel, any state the previous kernel left behind is irrelevant and the > > > new kernel reinitializes the system. > > > > I tossed this into mm.git for some testing and exposure. > > > > What merge path are you anticipating? > > > > Review activity seems pretty thin thus far? > > KHO is going to be discussed at the upcoming lsfmm, we are also > planning to send v5 of this patch series (discussed with Mike > Rapoport) in a couple of weeks. It will include enhancements needed > for the hypervisor live update scenario: So is this V4 still a RFC if v5 will be sent by plan? Should we hold the reviewing until v5? Or this series is a infrustructure building, v5 will add more details as you listed as below. I am a little confused. > > 1. Allow nodes to be added to the KHO tree at any time > 2. Remove "activate" (I will also send a live update framework that > provides the activate functionality). > 3. Allow serialization during shutdown. > 4. Decouple KHO from kexec_file_load(), as kexec_file_load() should > not be used during live update blackout time. > 5. Enable multithreaded serialization by using hash-table as an > intermediate step before conversion to FDT.