Message ID | 20231222195144.24532-1-graf@amazon.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-10031-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp1294825dyi; Fri, 22 Dec 2023 11:52:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgmGmm/OxZr0n/2nLwbT4PJMx5gWlj48778mTwLvnU5nx7bQo2+Wv1ly4Xq5LjxaUwkUsg X-Received: by 2002:a05:620a:22e7:b0:77f:702:f5ad with SMTP id p7-20020a05620a22e700b0077f0702f5admr1998857qki.66.1703274738230; Fri, 22 Dec 2023 11:52:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703274738; cv=none; d=google.com; s=arc-20160816; b=t3USPnlqNgr68PfUmucTHNEC3pPXQQckAse1BfRGdeTuNYv00ivC19wBIt2Rp9v2cd zEzCFk9TbqpASDM8dCoi5otMDzcpPSjgejMVB1OlNiiytqsRtMFJ3OsiDfFARNdsN6L2 qcsGJ9Tqw7hKfAtI32FECHP85H9A8akl4YkQMFtxfv7NUJIvlLqA3Xoil02+fCwswd39 Cd+KPkHD2oQcVBYOhrSrKPUaPxkp4aG/pTurO59raZNgwIZpLM/MEESgV2fNrue+9+Hw lFAn8dZi37olv4u3wWLnLrIqUpJ5TaxXVhrVyyI0Sf34ZDJf42fRTmQoLTmMM5UN1SOV ORzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ZLYCMQzZdYknax/wRIALOVvHrvD35sO3OPXkV3K/85M=; fh=xprWcyUKTLi4rhte7gFCvduD673j12awuFkCPnYDQVY=; b=t+b5LFgSwOqKWw3MYNRkPkbShiBst3BKAL0yGOSfnWpHMVzUhAsu3a263D6Rcp416q 2Ajfq91tv18rpQ8F/1kD2Kde743VnY2yLXaxtoBmY6Y0fLmLgY53EeE5Lxq1i8HVpe3e 0/2b13FSsKE6mZOgJR+XeKeHAJhljIwGRY0bvSNOTu5chgIiRtl+IQMT/hiQqVWzNyCV yhQrgobM56aHswn5HRpj0j7bT8wFerQdyYwFmqlvHOj+jQauO/XFNp+S9HfycolI0Pej ey46LS3xLfutr1cp0Cr1Iw9ptF6TwUMY7Z/Pv/H90JtbgakvoVt6aOxBh4okl/wOMBJO F3hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=AL5kpyVb; spf=pass (google.com: domain of linux-kernel+bounces-10031-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10031-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bn5-20020a05620a2ac500b007810add037csi5078796qkb.494.2023.12.22.11.52.18 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 11:52:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10031-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=AL5kpyVb; spf=pass (google.com: domain of linux-kernel+bounces-10031-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10031-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0AB3D1C22BF3 for <ouuuleilei@gmail.com>; Fri, 22 Dec 2023 19:52:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCBA92E841; Fri, 22 Dec 2023 19:52:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="AL5kpyVb" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-fw-52002.amazon.com (smtp-fw-52002.amazon.com [52.119.213.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62B682E648; Fri, 22 Dec 2023 19:52:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1703274720; x=1734810720; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZLYCMQzZdYknax/wRIALOVvHrvD35sO3OPXkV3K/85M=; b=AL5kpyVbfyvXZ4CECGLaj6aKglqjzdfZwpzBhe5J/mDHeod2xe0tX0Zb nahDch964bPMRQYJE/ePCiy9oC+whH0Mc4gY5Sakhwwfayed+iYq3Rzni BlSfg+3dlXUAzWI/H024/IFcJR9rxu6T10Jq6msu5i1X7Y6DCMadu6ocS I=; X-IronPort-AV: E=Sophos;i="6.04,297,1695686400"; d="scan'208";a="602627198" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-iad-1d-m6i4x-d8e96288.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-52002.iad7.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Dec 2023 19:51:58 +0000 Received: from smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev (iad7-ws-svc-p70-lb3-vlan3.iad.amazon.com [10.32.235.38]) by email-inbound-relay-iad-1d-m6i4x-d8e96288.us-east-1.amazon.com (Postfix) with ESMTPS id 5710B803B7; Fri, 22 Dec 2023 19:51:51 +0000 (UTC) Received: from EX19MTAUWC002.ant.amazon.com [10.0.7.35:35926] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.56.23:2525] with esmtp (Farcaster) id 82a6dd69-7016-4d64-b557-324d614fe9ef; Fri, 22 Dec 2023 19:51:50 +0000 (UTC) X-Farcaster-Flow-ID: 82a6dd69-7016-4d64-b557-324d614fe9ef Received: from EX19D020UWC004.ant.amazon.com (10.13.138.149) by EX19MTAUWC002.ant.amazon.com (10.250.64.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 22 Dec 2023 19:51:49 +0000 Received: from dev-dsk-graf-1a-5ce218e4.eu-west-1.amazon.com (10.253.83.51) by EX19D020UWC004.ant.amazon.com (10.13.138.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 22 Dec 2023 19:51:45 +0000 From: Alexander Graf <graf@amazon.com> To: <linux-kernel@vger.kernel.org> CC: <linux-trace-kernel@vger.kernel.org>, <linux-mm@kvack.org>, <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <kexec@lists.infradead.org>, <linux-doc@vger.kernel.org>, <x86@kernel.org>, Eric Biederman <ebiederm@xmission.com>, "H. Peter Anvin" <hpa@zytor.com>, Andy Lutomirski <luto@kernel.org>, Peter Zijlstra <peterz@infradead.org>, "Rob Herring" <robh+dt@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, "Andrew Morton" <akpm@linux-foundation.org>, Mark Rutland <mark.rutland@arm.com>, "Tom Lendacky" <thomas.lendacky@amd.com>, Ashish Kalra <ashish.kalra@amd.com>, James Gowans <jgowans@amazon.com>, Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>, <arnd@arndb.de>, <pbonzini@redhat.com>, <madvenka@linux.microsoft.com>, Anthony Yznaga <anthony.yznaga@oracle.com>, Usama Arif <usama.arif@bytedance.com>, David Woodhouse <dwmw@amazon.co.uk>, Benjamin Herrenschmidt <benh@kernel.crashing.org> Subject: [PATCH v2 06/17] kexec: Add config option for KHO Date: Fri, 22 Dec 2023 19:51:33 +0000 Message-ID: <20231222195144.24532-1-graf@amazon.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231222193607.15474-1-graf@amazon.com> References: <20231222193607.15474-1-graf@amazon.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-ClientProxiedBy: EX19D032UWA002.ant.amazon.com (10.13.139.81) To EX19D020UWC004.ant.amazon.com (10.13.138.149) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786012142441176587 X-GMAIL-MSGID: 1786013012255058844 |
Series |
None
|
|
Commit Message
Alexander Graf
Dec. 22, 2023, 7:51 p.m. UTC
We have all generic code in place now to support Kexec with KHO. This
patch adds a config option that depends on architecture support to
enable KHO support.
Signed-off-by: Alexander Graf <graf@amazon.com>
---
kernel/Kconfig.kexec | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/kernel/Kconfig.kexec b/kernel/Kconfig.kexec index 2fd510256604..909ab28f1341 100644 --- a/kernel/Kconfig.kexec +++ b/kernel/Kconfig.kexec @@ -91,6 +91,19 @@ config KEXEC_JUMP Jump between original kernel and kexeced kernel and invoke code in physical address mode via KEXEC +config KEXEC_KHO + bool "kexec handover" + depends on ARCH_SUPPORTS_KEXEC_KHO + depends on KEXEC + select MEMBLOCK_SCRATCH + select LIBFDT + select CMA + help + Allow kexec to hand over state across kernels by generating and + passing additional metadata to the target kernel. This is useful + to keep data or state alive across the kexec. For this to work, + both source and target kernels need to have this option enabled. + config CRASH_DUMP bool "kernel crash dumps" depends on ARCH_SUPPORTS_CRASH_DUMP