From patchwork Wed Jul 12 16:15:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric DeVolder X-Patchwork-Id: 119273 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1268286vqm; Wed, 12 Jul 2023 09:28:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlEMSNvWONbIOrkMPNqeLhbjsrw+79C7b7lidlboVDm6+vomy9mkr+q9fXVz2aBx8w0tDqjW X-Received: by 2002:a2e:93d0:0:b0:2b6:ef10:f018 with SMTP id p16-20020a2e93d0000000b002b6ef10f018mr17392467ljh.42.1689179335114; Wed, 12 Jul 2023 09:28:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1689179335; cv=pass; d=google.com; s=arc-20160816; b=UwmGTjpWHzX7YA3bagrdSccO/Uk8/zegfoczfDjHJkbgyRyHVJ3wVxyptCyt2tDEo9 frVLIGJn0tZD7TZRoxr2xGLT7v4kiXYQlmj3s/jaGHlbTslPccHP6wkwBlesMM5gcNif qaQXhYIDPbSFcocaD2Tmc7AWA0BpbZsGFRoSM1eJEDW8cHOv95TCEhjW1kHIOZCypM+4 zLzdnujLKUb/qDo98KH+7ub3oGrCwuAXaPmIJKmbifkP4YbfZcg7q3ifROXtmX18Tm66 EeNUI4zfDzg/X7Uf7PeqxyzyjDLPRDWvVYOudqsNk1Q0kLxqZ3PF4XHrqE1v0i0un528 FwTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=XjSKP5O9Qvz1o4MFR00yYopNPOPRQmNhadXQ7adxl1c=; fh=OnvCYc85Zc9mFJ9Px86Oam387o4YKs25CUyg+2gB+44=; b=Pr0KQ+URHyzpqtvj1I+CSQULomBFe0KEXGdy7hvcbxhS9QHqfPHV2uXtk0Uv/BfmgF 4Uh4h8B3IhV/ae0xh5fEYvPQ2eyBFqVzsXfFuM75vjAyv1baIYfyyhjuPwS/PcHDveUK bYwmg85CqZC7trhxFpvQH57fdsMOhFerL/QNHpgCDb2PxHXlfI/lkO8VvxHx+rFpzMh7 BHn6eXqRP5KO60r85M2iEa8DfV18ILiR/GssteNRSkBUOiJ+ZDU05GkJISUUhiJMPYQd 962KsElj9rkQmpdrXvUMlv8PclQXRSGcglyJMhRW7bBMQuKbpXsoeVOB0PdMR+oG1pTp HQNg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=t9WqqB9Z; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=aBxOvsZT; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o17-20020a17090611d100b00988ce720dedsi5076487eja.541.2023.07.12.09.28.31; Wed, 12 Jul 2023 09:28:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=t9WqqB9Z; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=aBxOvsZT; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231784AbjGLQRn (ORCPT + 99 others); Wed, 12 Jul 2023 12:17:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232837AbjGLQQ6 (ORCPT ); Wed, 12 Jul 2023 12:16:58 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EA2F1FE1; Wed, 12 Jul 2023 09:16:47 -0700 (PDT) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36CEiFw7015929; Wed, 12 Jul 2023 16:16:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=XjSKP5O9Qvz1o4MFR00yYopNPOPRQmNhadXQ7adxl1c=; b=t9WqqB9ZSCrGCZSQYClVVjiK3tL6X+7tI+QnqP2hZtfAjUc6C3/G6Fob//HlWGtIKfWt 5uA3pt9U9kAg4zEuG6CzglaURUs4pUsatINZU5fYGcdmhBTBKsJMMaBTfdN9g8FFzVNp 24x+yIsiBtOmgE2JJvYWWPnhQB3Jw0SF3eAlEG5FANkgbxZiSz07rQAbJX0U9eaTb0nY oMj14rqpC3U5PMrAaJiThUB027CEmE9IMXnBdrg68zmaR1dUtnGuDwBFeRB9wmxZCezn ax41XfRaWjQPUCIurxI2ssSW/CJinTXDh+D2HSfNX+QgD/5LnLXXMmpIRBOOlLT3zNB5 /Q== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rpyud7sxw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Jul 2023 16:16:29 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 36CF4bmE033338; Wed, 12 Jul 2023 16:16:28 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2169.outbound.protection.outlook.com [104.47.56.169]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3rpx87b32f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 12 Jul 2023 16:16:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U9ntsV/CsVcuPEh7pVD3SGEhKfNrDbQmKpGM2jeiqXJn2yot9AfPr0SciaAcsyDmicIls//4s1xCLygHW/EZwyDY2f2LQewKe2Ls0giHK+DucYITBy6zOe4rmNRowe0HQY8eZFZk4nFJkzFUQ49at0rig0Qrpb80PqJ3KGXgtE5lzF3a7RtvBCImlTjCndDB2nBCUjglQU+HJXOZxfAEnwx1i0b1jRDhHf8xrUZq2oAmeZpvq2LHrtHIp4yrROs4Qv3msmp02oT5qQiBEhysrimgU6J2YBKmSp/wMhObOVV6JgifnPwqWkkr7wF53Xmb0kcm+NBXtGnAu0Z/fVTr+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XjSKP5O9Qvz1o4MFR00yYopNPOPRQmNhadXQ7adxl1c=; b=elV1vhe1O4Z3MDKDluU6Ioln6e1VwePB9shBAStAppzJP9S/pfzidQnKQey4grjm/HklokkIkCtQqTVtesaqsB7naYxfkGXpuHtrWqxHH7uQempdGs+BO77av5wZanefa7VWjOcDeCO8eImQ/9UJ/SNJJL2TU/kcBlvLq1jcpJ5k68hlCqBfRjNi2DiprgyACHW+ifxKI/wys5COJzAepqojLjoDtRxPJ0Vpx8m1luAO2j9k5Ih1gbJcqFngNGzW/RJYmZznITH3fjTfsFAJcIZ2KAxitSkmdAssSK4Ar2Xraj7kijvVGARNeSn/B/Cp0iXQ83yhvWAoKXVYUhPTHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XjSKP5O9Qvz1o4MFR00yYopNPOPRQmNhadXQ7adxl1c=; b=aBxOvsZTp+SPnPqQJ/ku7k4dmYK31nqYuyWHRKoQOZ2JX6qxpCnsH7/Ut5MnkyTYsvZ6fopS8RRwwCyy42pdm7TjnJ1TjK86mmgoJAWAE1556A1nvGkql20TbyIBpY1b+PDJ5aO2P9m7Qta/bSADnxGkLm/ORGdUNkuj/CZSQi4= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by DM6PR10MB4219.namprd10.prod.outlook.com (2603:10b6:5:216::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.22; Wed, 12 Jul 2023 16:16:25 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::4c83:52fa:a398:11a8]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::4c83:52fa:a398:11a8%3]) with mapi id 15.20.6565.028; Wed, 12 Jul 2023 16:16:25 +0000 From: Eric DeVolder To: linux@armlinux.org.uk, catalin.marinas@arm.com, will@kernel.org, chenhuacai@kernel.org, geert@linux-m68k.org, tsbogend@alpha.franken.de, James.Bottomley@HansenPartnership.com, deller@gmx.de, ysato@users.sourceforge.jp, dalias@libc.org, glaubitz@physik.fu-berlin.de, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org Cc: kernel@xen0n.name, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, hpa@zytor.com, keescook@chromium.org, paulmck@kernel.org, peterz@infradead.org, frederic@kernel.org, akpm@linux-foundation.org, ardb@kernel.org, samitolvanen@google.com, juerg.haefliger@canonical.com, arnd@arndb.de, rmk+kernel@armlinux.org.uk, linus.walleij@linaro.org, sebastian.reichel@collabora.com, rppt@kernel.org, kirill.shutemov@linux.intel.com, anshuman.khandual@arm.com, ziy@nvidia.com, masahiroy@kernel.org, ndesaulniers@google.com, mhiramat@kernel.org, ojeda@kernel.org, thunder.leizhen@huawei.com, xin3.li@intel.com, tj@kernel.org, gregkh@linuxfoundation.org, tsi@tuyoix.net, bhe@redhat.com, hbathini@linux.ibm.com, sourabhjain@linux.ibm.com, eric.devolder@oracle.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com Subject: [PATCH v6 11/14] riscv/kexec: refactor for kernel/Kconfig.kexec Date: Wed, 12 Jul 2023 12:15:42 -0400 Message-Id: <20230712161545.87870-12-eric.devolder@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230712161545.87870-1-eric.devolder@oracle.com> References: <20230712161545.87870-1-eric.devolder@oracle.com> X-ClientProxiedBy: CH2PR04CA0021.namprd04.prod.outlook.com (2603:10b6:610:52::31) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|DM6PR10MB4219:EE_ X-MS-Office365-Filtering-Correlation-Id: 964c9fc0-9255-460a-637f-08db82f356cf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TTVU+NgX7vrjn1ec1j+gAnuuyb4NqOEKbklaeZNy6uMnGFw6HMleLyg+XETOsA86Sia6ikIfSBO0YJ3cYRQgI3aNVCf2SVQuKBNU21Sr9T09ZyzwrRIkwMNCNnFQ5LfcZL7uh57bNuVzn594Tq3Bbz1Oo6zpovHTZbbdJmCnMWu8K9/yHrX4i2Y3caXxLAgqBunGjgJV7W8RJxQ8KDF9/4Kg3Bu7lwk2FBImTOLvUlYKA3gNJ6Lll8Ai+VXovZrdQsR1vhMp5WxB1Bi/xyoolciGyqievkt4WfskODZ4YcrM4a07ynGdDJstRRc6+zxtwNRzOvQnhWS9VcyRRqVEOnzCtW1n7uGHtuqCOvtWYp7nAQPLiu/mnj1q20/fssSmB6THyWkY1NDartx9XobdYj0bVGkyrJdxtiLNn/jojOfzzLvKEr4HRpPNgz7KcXK6ZdBucmIGqJTRQQadANzjc/TWVwbDJr2PvIrBgP8BiM0jv/fpLTlsvr2ircjKlbC7cJlWVWlntkHWUrxqx/RcB/Bg6f48wSB+bUYlfT9SH6mYB8Uh4sQ/RdNc7TN94b/NB47Iv88qBTdGmiZjnGrOwbPBrf9JHBjbUflceQB8fVY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR10MB4531.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(376002)(39860400002)(346002)(366004)(396003)(136003)(451199021)(478600001)(6666004)(4326008)(6486002)(66946007)(66556008)(66476007)(316002)(41300700001)(921005)(186003)(2616005)(2906002)(7416002)(7406005)(7366002)(8676002)(38100700002)(8936002)(1076003)(26005)(36756003)(6512007)(5660300002)(6506007)(107886003)(86362001)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: edJwElHhMMgfHaF08rVhPmvpb4RwpIKeqwRtjjx6IuhFRM99jyMYLi60G76g7yuCDCQOLzQ4n/g2g3x6bMCXnzLW1PJ5Jkg3tS9PanaFlMRQ+0PcEecbEVju4fY2GAJckXSTCFIeoSsnlPcdpQt8xzhgdSNU71M5KPFz8sbnKTQSNAxkFyyGxU9vT0Ai2rb9jKLJA1Ink1te7OMprO4fyIYY8suUuXqsVZNFlgHKKowW3AlY8aZJm3RIRwDpC7+mMoVB8KUFdKQHNQ5QMEKpN6/60l320Nz1RhswpS9uiGNZD1CeOwUvGlqOIAASrzkYxFG3Q27s1NHHeEZbhC8D+pNlJuVG2O44fhMOYoSEdAq4EbrLLqgcghaxnZ5uilwsmGtYkCdO6TcL+Fj/N5uTOQgof0KDa5UPkV4iatO+XkTlVu3HupiaFC8L4YZKBp4xNqr9IpnVvrDWJT0wU8AbKDgvfm9k+SM16TrdvVjzvT1jPjDqp6Lm+KUfvRAtgVWROGCtEDyV0kcESHMzl1kT7xxAJevXfG8KgieiumPje2l7eN2uvqt8red5bW2eYHVUGSS1mF0If88XmIqHbaL8Y+DHTu11gA5hC+iEzptgM36a+QYWconAt/WyVUqf4n6cOi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GRsVHKmX0jRwyTikSIYSoQHMo0QY8QcPeNRU0AivvPcf7fDjOsu7lps715zjq2RlTlvPI35uPSZXDCI8CbXLoFzMEvXnDOvpZv1WlHnZJev47NcQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 964c9fc0-9255-460a-637f-08db82f356cf X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2023 16:16:24.9849 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qA07Zjf9Z5ezEZipNsY8yLnbab7hNv8/7E2wt9ms0Z7nxpzq14TqONXfeicr8oBIRh0BnYfu0/Fw+c3ZVqhd+T1BJv0Q9V8n+9NRkqVcB4c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB4219 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-12_11,2023-07-11_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxlogscore=999 adultscore=0 mlxscore=0 suspectscore=0 malwarescore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307120146 X-Proofpoint-ORIG-GUID: 1PM19TDoCoxjlbvecwTEiEc97-Qyo04w X-Proofpoint-GUID: 1PM19TDoCoxjlbvecwTEiEc97-Qyo04w X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771232910131216191 X-GMAIL-MSGID: 1771232910131216191 The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder Acked-by: Palmer Dabbelt --- arch/riscv/Kconfig | 44 +++++++++++++------------------------------- 1 file changed, 13 insertions(+), 31 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 4c07b9189c86..23d0fbbe1367 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -650,48 +650,30 @@ config RISCV_BOOT_SPINWAIT If unsure what to do here, say N. -config KEXEC - bool "Kexec system call" - depends on MMU +config ARCH_SUPPORTS_KEXEC + def_bool MMU + +config ARCH_SELECTS_KEXEC + def_bool y + depends on KEXEC select HOTPLUG_CPU if SMP - select KEXEC_CORE - help - kexec is a system call that implements the ability to shutdown your - current kernel, and to start another kernel. It is like a reboot - but it is independent of the system firmware. And like a reboot - you can start any kernel with it, not just Linux. - The name comes from the similarity to the exec system call. +config ARCH_SUPPORTS_KEXEC_FILE + def_bool 64BIT && MMU -config KEXEC_FILE - bool "kexec file based systmem call" - depends on 64BIT && MMU +config ARCH_SELECTS_KEXEC_FILE + def_bool y + depends on KEXEC_FILE select HAVE_IMA_KEXEC if IMA - select KEXEC_CORE select KEXEC_ELF - help - This is new version of kexec system call. This system call is - file based and takes file descriptors as system call argument - for kernel and initramfs as opposed to list of segments as - accepted by previous system call. - - If you don't know what to do here, say Y. config ARCH_HAS_KEXEC_PURGATORY def_bool KEXEC_FILE depends on CRYPTO=y depends on CRYPTO_SHA256=y -config CRASH_DUMP - bool "Build kdump crash kernel" - help - Generate crash dump after being started by kexec. This should - be normally only set in special crash dump kernels which are - loaded in the main kernel with kexec-tools into a specially - reserved region and then later executed after a crash by - kdump/kexec. - - For more details see Documentation/admin-guide/kdump/kdump.rst +config ARCH_SUPPORTS_CRASH_DUMP + def_bool y config COMPAT bool "Kernel support for 32-bit U-mode"