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 ADCF8C021AA for ; Wed, 19 Feb 2025 12:49:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CDFF044015F; Wed, 19 Feb 2025 07:49:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C8F3F440156; Wed, 19 Feb 2025 07:49:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B301444015F; Wed, 19 Feb 2025 07:49:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 9655F440156 for ; Wed, 19 Feb 2025 07:49:01 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 4F836A2F29 for ; Wed, 19 Feb 2025 12:49:01 +0000 (UTC) X-FDA: 83136674082.18.9AE0CE7 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf07.hostedemail.com (Postfix) with ESMTP id 1404E4000B for ; Wed, 19 Feb 2025 12:48:58 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=cj8fGW3r; spf=pass (imf07.hostedemail.com: domain of ruyang@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=ruyang@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1739969339; a=rsa-sha256; cv=none; b=WWn08/kDMyTAKzVVDeZmrM6k7wCtCMUpoYpjuJnK8g0hEOwi05JEofQcI6Gh5ZDh4ZXz/X ca1armHxs/3Ta6Fknk2a7M/O6lxIANvbc1I29AShkmlkrcp499OSA/Rr0ublZzLoySNs36 PSF7F/wH2I7g67ox9DaCTCv/0Hb0vxA= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=cj8fGW3r; spf=pass (imf07.hostedemail.com: domain of ruyang@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=ruyang@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1739969339; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=SMHHlCMcxXYtVaRR1wTwHJJB8CwWA0AX/SUXLDYSpC4=; b=tUceERKoEw0W7l0MQohUN8Xdc7RzoRBViVXrW43+Ei8rO8NkLtXn1f6dihpd1mS9RDnHR5 zrhFlRMfInV195B249R2i5cH2CzNU/RbBMkymyNS7RG5yZ2fvtMiNU4Xmtbr5NZbB1nFyt IkrQqmbEX3DWKKUb7cY9i8eLqMDsPuM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1739969338; 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: in-reply-to:in-reply-to:references:references; bh=SMHHlCMcxXYtVaRR1wTwHJJB8CwWA0AX/SUXLDYSpC4=; b=cj8fGW3r/87s7KQtC4JOfRk/0Sxp0LwdoIEJM2B5r6qX6mC0giFQgLTdyBsimx29Sy33MB oHDLPpTsyhjYgogiB4Qe/rlDtA/5F9m4wjSqzHvSo1mx87/B16sDNhvgYB6vsx5j8d+WyR IV4TZE7C5HKHX2xFVJ84i9PBwv2WRV8= Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-201-lU04_lVtNhK31vTWQyaEvg-1; Wed, 19 Feb 2025 07:48:55 -0500 X-MC-Unique: lU04_lVtNhK31vTWQyaEvg-1 X-Mimecast-MFC-AGG-ID: lU04_lVtNhK31vTWQyaEvg_1739969334 Received: by mail-il1-f198.google.com with SMTP id e9e14a558f8ab-3d2b6d933c1so13105485ab.3 for ; Wed, 19 Feb 2025 04:48:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739969334; x=1740574134; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SMHHlCMcxXYtVaRR1wTwHJJB8CwWA0AX/SUXLDYSpC4=; b=s4cfxh3tAzAy6ZpGBc5pQ0DVtV9K8z7JF5DT/ue/YQXPr9p8wmiHRuthYw57jOgsXB O0P0JRrSK/5e6CupKFT4G8eSFyhc9YSRiWKw2eUvDUyoWt09nvRIgeMIyKk+qUk9WTUX +lV98LUe9mxSzhm/8BOZsDlPqrp8igeGGbh4aQ/RM/VkeBT//qCXbExO6Ge9LtTRZK3o rEbPuxJmGrzlaznUtRucb+hGNIDW7Xx75kL/xaTKuTZBNU1bDMlnwUT1eAfg2gI4PXpS Q4s8ecQS+1gcB4zhWXDdT57WEyhGluiDtir188t3ajHRwtZ6Uk5LeVtyApHdSz0UNIZg HlFw== X-Forwarded-Encrypted: i=1; AJvYcCXYbFZ+YpG0ELO6cjAnYnfeivafguPKuFo9Vw2lcJ6OfhAjUbCX3XbZjeIBZrLIeldnbxXYEzrNdw==@kvack.org X-Gm-Message-State: AOJu0Yx9h4gQs+TeqQTzdaSCKvV4vlgYNGSsIJKZSxRb2ABZo1cnMmYt Fq/TsujuJm8p/rwtjq3R27OWot/UpdCP1s1w2u+3Sx8uY6w9Xf1RwLiVwRr3q+IQ5go48+yplZ0 VUmf1JbnZvoLRDRSWs0sGQ8LX2CseQRxpXM8n6hMW0EfOhge0RwwpC9wxe6aZ5wqkw8FdmnyN48 KrQJvtGJd3e82GpGIS4v27Yfw= X-Gm-Gg: ASbGnct1JpFcXOlRfrWEU/BWflEKOu0yo8yBuuvg6bs9yzZ40k/xZ7ev/LyOZ8+W98t sEwBnRqLzxVRk7WU54jEDnUXNiFl73+hmTUograxdMIzJY/7yymHnRgPwAMGYWXM= X-Received: by 2002:a05:6e02:184d:b0:3cf:bb3e:884c with SMTP id e9e14a558f8ab-3d280940c90mr162914185ab.16.1739969334542; Wed, 19 Feb 2025 04:48:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEQzXwQKpyH3rywpGs7BzP6mbj6/B897FEVbfIit3jAtaZt2ga8Vr+6/m/vSCYkDIbGIHSmC6KPV/ULHybcxNs= X-Received: by 2002:a05:6e02:184d:b0:3cf:bb3e:884c with SMTP id e9e14a558f8ab-3d280940c90mr162913745ab.16.1739969334259; Wed, 19 Feb 2025 04:48:54 -0800 (PST) MIME-Version: 1.0 References: <20250206132754.2596694-1-rppt@kernel.org> In-Reply-To: From: Dave Young Date: Wed, 19 Feb 2025 20:49:07 +0800 X-Gm-Features: AWEUYZlzn2-E8ZdtRbfhtM_eLch7RFvZ-yzSIrzOWYzAtm2oUJ9ngWc6Obau8Nc Message-ID: Subject: Re: [PATCH v4 00/14] kexec: introduce Kexec HandOver (KHO) To: Mike Rapoport Cc: linux-kernel@vger.kernel.org, Alexander Graf , Andrew Morton , 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 , Pasha Tatashin , "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 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: x11A6jWbkZmo0BGPnIOyhlIoP1zO-o5wUob3cRfVlVw_1739969334 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 1404E4000B X-Stat-Signature: oykrekjqrzqx61kp1wma8zwghppwkejo X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1739969338-849877 X-HE-Meta: U2FsdGVkX18zxgotcvjXVt2oJtYlh+bUpfjE8hAxWqyPM+U1vey5oS+g+RWlyqbRTmxcf3VRDcDIa+CubZWbI15N1Xff66WhEJAhdwiLoFUwiWLX+iBuCTVgN0X71D14pQwDWSduleWKGm5UBauVaAe0Vb8rAWsxDhWpZqA2BM0/IeiNbGz705jLKITs26pnklu74srDTWLP2mQRpkqKpitevi50jKkjDbp8rzJj9KBaOETIJeVTELXoXbp6R1ib3zK++Ss0jMdIdiZGnfxUHnrIvliGns/wTl7t1Gz7lxO+J+f6nqhfwNyagI2n4sQfpuTZewZuChFzle0dF5dBBI3KP8srtSpxHwlhclTsV8LstKLAhCEDe/5Dy5lGY1PFjnfZUnTAMOllHQkjIULxfndhb4INry5fQ1m/Hc33OQn3B8R1RDvQEa9DCJeYmnRSU4xm1GdRSogKlAo/Ev53kLv/GT8Bf71j2E5adrohWHyxxPUoBrWx0TvPDo/IfAtHJNh50/d+/Iwb9dLwIPYXq2sl7alsUKrHCxkjlHF96QyNrgdvC92167D5yZXQo5Ja71AAUtdTij5/aL+s2PPqtXRpsZyPYaVQMRMXJ0oZNtBaL9cLnatwva5LDH0W0T+lkwDXwR0SEloE7s91oi0JWAj7zAY2EjUlhw4fKA38zRjuirkeQFon4zKmHxuSlEl3rJcYrFEvqZnu68II6BDjdpZIIJFyOo9i2RPHdJYmxDJXbeNwB13EqsLtodtz4gmBZQI3KCKfm9FNOU0yIDRAMl7qiidyGh7zPiAp1kl1TFWBO7wrV4UyHA87y4azWDFgU+f28cLi6S2ux9RuuhewjjI4uEYZfQ5KMXCZwPbY2V3BUthEcMO7O0DB3KaarxViNZkZShAw7K6BVzB3D4I92iZHVyQv5AWBKHtxA+p4MeeDdS9riPwkeldhc1ccom0ZmGobabH933N7bkzjGMh Y//lD8VE XJVgn9U+5EazQURB220fwj8eTQm+nVKk4smBSI44PAXdZ27kgWgCdSwH873r52nBpHTq4gmj4K+kiWbJGR8VIh2XXTiN7knxzmMdn2oziqtCyEcV8/PlPyDVLKncdcnc/EVJBDY9ntkFqYZqMByx2WUr36FEvQPCUTQVFHUbDlRiDj9i4Bn/F3QtwDnssv/fjzjhlFrnfOYfC2l4yRKxiBrF1RJA8K9HefKl/zUXOYEplogFpaLu9sp8OlyXbnGGkXmXK7vuGcDjkRmiGodkit+O5KPE2YFE1jsZkvX2bDqeQArG30n2+lDBzGi9aeMglOR/r+1JkUqAzWPn8bay1gv4wnXLSYvvYzD9Mpy8SVbIf1uK53jvpxNR6MGXD8bcR2B8hvxA0DCVPonsP1KEBXZyK8qnZxQlaS2L7FPiC9fAaJXX+maW3Bj4AHHcEbgi67rupu5znLqApi7jK3fAW4KcAcyaYokAEcBbB 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 Wed, 19 Feb 2025 at 15:32, Mike Rapoport wrote: > > On Mon, Feb 17, 2025 at 11:19:45AM +0800, RuiRui Yang wrote: > > On Thu, 6 Feb 2025 at 21:34, Mike Rapoport wrote: > > > == Limitations == > > > > > > Currently KHO is only implemented for file based kexec. The kernel > > > interfaces in the patch set are already in place to support user space > > > kexec as well, but it is still not implemented it yet inside kexec tools. > > > > > > > What architecture exactly does this KHO work fine? Device Tree > > should be ok on arm*, x86 and power*, but how about s390? > > KHO does not use device tree as the boot protocol, it uses FDT as a data > structure and adds architecture specific bits to the boot structures to > point to that data, very similar to how IMA_KEXEC works. > > Currently KHO is implemented on arm64 and x86, but there is no fundamental > reason why it wouldn't work on any architecture that supports kexec. Well, the problem is whether there is a way to add dtb in the early boot path, for X86 it is added via setup_data, if there is no such way I'm not sure if it is doable especially for passing some info for early boot use. Then the KHO will be only for limited use cases. > > > Thanks > > Dae > > > > -- > Sincerely yours, > Mike. >