Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29127625rwd; Wed, 5 Jul 2023 07:34:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlHWhrXekSolVvm7/vgAbD+c9Be57xlYhBbVchCmZZrYt1A7eW+wVR2HB9TWnzjDPo738SMn X-Received: by 2002:a17:903:41c4:b0:1b8:a73e:aaac with SMTP id u4-20020a17090341c400b001b8a73eaaacmr5255070ple.62.1688567649790; Wed, 05 Jul 2023 07:34:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688567649; cv=pass; d=google.com; s=arc-20160816; b=wrNnhI+C4PkkQUGN57Zmknu1YGSgiJnZyUIPvhpZcoyi3y1XtgpjSh489c+CgeC8bZ 6jZIRFnli3Bzi4ys/TCLM0k9gmCimpcwzKktYz0lXAc7g1emHAURzbwF2qteUAsKi/yB +JyrXNJepXro4/vxT/ID1y/vcPiz5YBfhj1zWjSLDF6y0sEQ22kmWWXxV2WLwK9ArGta nZUTsuWCpyqQUm6wFn5/gCP5ikgou2FX08LAdSLiCFaVEmU9ZmqIfCBvvVvI3bTyA6vk 05k3yH9wYH/IaGcDPXet26rdJbcXyh0OYWitznbhcfTvtbmhQqC63xO+NrDg5L5yV2/v Cf3A== 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=b+PKwj0HONu7bLQpXmtLDG4GCIkHBRq4GGrkhD06IPk=; fh=2UGwhCXpH2qOVBiE2vsd7TXiqZXRHu4NK1RRt/adHXQ=; b=E2B4Ii4s65D9d+eshEFPkGBpL0Jzo1m+BxIV8Z5j86QfzKa705UvqU+pBSkT0ohsTU qhI0WEcUB/jGczCox9WTtwX6k7ZEBli0VyDhTmnrEfnj4bSZ/uS7zTFbJ8hQA7BVoxe1 V8VgLDlXO2/4YAYjcSoOqWxPzMENQJgJZLIopRWTvn4FdFUdLSU//b7Y7GhbyuuIMHBL UEufElNzRmYAchfpX28+cHgQzp8KjejuMdk1KBMaggkJw725sX+zZ1arqPHJ75K0tKTd dI7J5t94JbZvQHZXFWJ8J8xedt1iKdHAkZjztg0gh1fv8ZyjTRPNwIN5WYn6fm7PYtMr QS8w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=lLLr02cj; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=U7Bfjao6; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a170902714600b001b837f239c4si1407020plm.651.2023.07.05.07.33.52; Wed, 05 Jul 2023 07:34:09 -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=lLLr02cj; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=U7Bfjao6; 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 S232589AbjGEOYT (ORCPT + 99 others); Wed, 5 Jul 2023 10:24:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232587AbjGEOYA (ORCPT ); Wed, 5 Jul 2023 10:24:00 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABA422D42; Wed, 5 Jul 2023 07:22:28 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 365EDlor027894; Wed, 5 Jul 2023 14:21:06 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=b+PKwj0HONu7bLQpXmtLDG4GCIkHBRq4GGrkhD06IPk=; b=lLLr02cj5c8feELZdrJYwQK7c370tKHnYUPlQb3fw5DyVriQVL5D2Vv6EgX7DSu4MrlC IavA6/E9CUGmJkS/UpEWd52sL6I+EnLB89b2thromRwa9OKgSDf9m5td6UnHRO8PGy9S acztoOFQMjnWVfaN+wdWfXGf+VotAgNArxEV4Gcir5GLPI3gw/7CX0eHjhwmdxzcdM6/ lxjCu37SwLtoOEAU4ewfhOGt3b64kq6WW8HuTyK/G/wxxR9fQgdvLbiid8MhCtB63kDi TQb0+CuaF8qbZbJWQljXNvq+ikv+4RkgdGRyd3/fo7Nsoc492tXF9F4G+582CWkzlj2S gg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3rjbrtehtt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 14:21:06 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 365DMsPB007181; Wed, 5 Jul 2023 14:21:06 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2171.outbound.protection.outlook.com [104.47.59.171]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3rjakbnwpn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Jul 2023 14:21:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IXllrLj2p3TUJLfXuFfsYtPcIW6EXJ8IDJN4Gx+lh81ioII+b3qeXGVMtarJ+MK/LEwSuJwp3hGM9QMFONyWbQ/SHibYzssZtEZ7+AoHmOL61IgJ37QZM46oUY2+4CQ8JEBRka2H2BtUCG5FDqljbVgTcSYAD46OgvVp+7u+oT00t6Aq7M0lEYRGWImfLnxumjupJoxNbczKgTzCg6Z7f/g7y+AxyqCiL82lqCyJGtRLpbvOCj1M1Q4hUMnyA7GcTY8BXai/W1vjGfrufGx6stpn6Y34aP7Rq4MVWvuFCe9hrp+Yc46bN7lWrGFLlfVPG9YdaIQkaMEleDlhm+Iuaw== 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=b+PKwj0HONu7bLQpXmtLDG4GCIkHBRq4GGrkhD06IPk=; b=CT3n7Oj6ToKkKOwie3pqv7WaVXzqn5hmF3JEWJrIeE9t50SvrVOK4CdVnS4TFJr9JHKd0ZqXlI6iLmRy8SROeXeiwILG3y8jOpqHs5GDjRszqB33pxWDdyXHgsXMkIt9hBhoPMg5vxSzxiEEWOF8OWYx1pDjHokP+l7dS5BVCveonCgD7aYdjrUWHZUzxlfSLzzXQvFEqTua2Cx6/UBqIn/8CnBj8J69MJxoUoJvxsNsCNZUF+u4rcjOt1zNMZr8+R9qkQkhPMUNqnt0M0AJmBFZvvGTaGnGxj3qgv+aV9KHvd9OisvK2qvdgcD+ZzvgNcqDMHQbH+av5HSMPA7TMg== 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=b+PKwj0HONu7bLQpXmtLDG4GCIkHBRq4GGrkhD06IPk=; b=U7Bfjao6js41pzjvV/fdDtfo/4wPmOQYD6C+hwpMGDKdyn5ECEIgIRk+kOv/TDmq9XWtWFYSUZoh75PMDfWzPB+w/aRSQGxCG/FUmJs4o3/xD+SMEayHq/82BFgwOfhCRr3emSHk9qrFT9d7W37p2RnUGvSws6zYlylObDVcRKs= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by SA2PR10MB4732.namprd10.prod.outlook.com (2603:10b6:806:fa::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 14:20:59 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::8b8f:b4b1:bb78:b048]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::8b8f:b4b1:bb78:b048%5]) with mapi id 15.20.6565.016; Wed, 5 Jul 2023 14:20:59 +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 v4 11/13] riscv/kexec: refactor for kernel/Kconfig.kexec Date: Wed, 5 Jul 2023 10:20:02 -0400 Message-Id: <20230705142004.3605799-12-eric.devolder@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230705142004.3605799-1-eric.devolder@oracle.com> References: <20230705142004.3605799-1-eric.devolder@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P265CA0103.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c3::6) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|SA2PR10MB4732:EE_ X-MS-Office365-Filtering-Correlation-Id: 8967f4de-09d0-4565-3cc3-08db7d630da9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KXq9dO6KNF52tCeyv9H+900sxUL4WERVTSV5eUv9xb2e7kHv58w6VRHnqUeR6s8U5GA18niSQSIrmEYdf2qTex7lKGn98nMf0iwT9nepl9M7SeFm8/q6R6lGIYMMs9Y2PnM8Bg7skjmp9uFtzx5QCuPvecqvyoO0sNJtAq8hCXMFMe9O6px6V2VM3OQ+x4TbV5+koGMligSp76QCEtgUTCcETbjHXunYYL/kVx+FGHtfhdD8f9I/O/yWDKINnhKridb2t22Qa4MiRbsnjgfS5d48Yv0MJDExVmrfHtabn3TKz9ebOZH/7lJ6G5hOm5aHicROgKcQDGhmmkvQe/OMBht3WqBSILzT73NmHD7yUeMN88VmGl0X7knm5ciR/u8O0xpLWSA3FVmsLA0VIHlbozie4HNUE3f/HYhHvXuKo3f3HcS2wTJcq/DeBy4dnAmuwSfySWhSW3U55ccTy5aAgcdV/77w4sOBVydOA6Ee5iQosm4u+/mDMMPiYb1s1QNnVOSZ1lkD6ARfl+uxKABbzDDfgdqXMICYjpvEQgzVa6kHG0bE6rITLLVwVrvybGFmGhnUasGSjXzsJymrUFgc2V3ISfEypk9Kj2W/IE3XYtE= 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)(136003)(366004)(376002)(39860400002)(396003)(346002)(451199021)(8936002)(8676002)(2906002)(2616005)(5660300002)(6506007)(7416002)(7406005)(26005)(1076003)(7366002)(186003)(66946007)(41300700001)(107886003)(921005)(6666004)(6486002)(4326008)(66556008)(66476007)(36756003)(316002)(83380400001)(478600001)(6512007)(38100700002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?rafcaWuR/KmNsKarO4X1px/cLNPUYaSn6dJ7Z6fRvwHTs14dNrCAXgKkycQD?= =?us-ascii?Q?DUBDmxcFZbbf7Hacavf0wOLngQjfrbmiN5ISDLnRjQ9rvMIzakeFPW0q/1sV?= =?us-ascii?Q?YoMu173fS4VjKytVc5bdTD2saOaMGY2vInoE5Ut0N2R3B9qDfjYj3Aug3Nmx?= =?us-ascii?Q?+Ai45Gw1W97PtSkHBNHgEdn8p2ij0CUzlh7a2f+g1cl0jT5ZnOeFOLQUx2H7?= =?us-ascii?Q?mplXvcfJUkdoWbMarNQ+Cu/xTS0t1N6sL/UaGT/1RXf4L71662x8bPeYmyIy?= =?us-ascii?Q?L0oMI2B/CyIpAoMPC4WLb+jt1B7ax/zGCM3lmMkAEky5xwZDDfsDmnWueQ0H?= =?us-ascii?Q?148BC8AV2+useU029H39NqioYJP9Y1yfvoYQAS9ozofeAxaYtXy/Nm9c1ZUN?= =?us-ascii?Q?Ofym57hZbxkuzUAwnETuPzkTKXQF91pMsAv1sKzl4uawAR84olFsCb0norDB?= =?us-ascii?Q?VAyeBYfdzPNHDgPz516RkFr7rerYvY07vVfG1ybdTVFqgbQ4aTtU+VMQi1yr?= =?us-ascii?Q?ovtmbbDd8TaEx64rmlwdqD8HjckznocXzIp2K8mYwyTo2NdHxLE2hXioKHQn?= =?us-ascii?Q?kZfwBPSH/+Wgz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+EUyk?= =?us-ascii?Q?lDPC6Oud3jSVpEb16dE6CeWYyI0OT75iengq2TZacnF1q+EtRi/2zJWxQQLR?= =?us-ascii?Q?kxVaRbuh/vqvI+3Tb83oxuMdbJilGpfwPUwnsXiEx83M3VECX04VNZsLykYM?= =?us-ascii?Q?ug=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?us-ascii?Q?hFM8yQoLMhfvoHiva2bEDBpZ0aezJHveO5bzKtgcr5fNhiBLPOQ8r7IA4N11?= =?us-ascii?Q?hkd6EetsL7Xll8PonX18JstDNej88Ncp3S3ennBZM60aR96TTNL1gcu5/4Cv?= =?us-ascii?Q?02ki9vIsugZfq/rkQvDVGaSPgaSXT661TjEQG9upvTfkdeW5qMFyvLoEDX6G?= =?us-ascii?Q?bs14h09oFw6SDB9+MRNKG1FQZb1zkP2K9mQiWglucs7eEtXhtkGyRHk1iuh8?= =?us-ascii?Q?FxmxVUx+/zv8++aRRQUAT1MkDyzAi0diX2tSJpSpPuIDHvqPqg/BdBoqzmm0?= =?us-ascii?Q?h+cLCTCZcwxneG+HRXYHlFBbzi3kmJt7AKnsuJRulPxNYWC5l6Vog2EIkBqx?= =?us-ascii?Q?oVcW95IW171Q+R0L2t0B/9X4/7VyoNNPUubelqdgBbHFJPfHtC+M63dqXrrT?= =?us-ascii?Q?grf0WDnmQ63eQxEmZU3h5RsnFUqnR5mKr4EWU/VqHcCMXriHbn0hE4QOKm+Q?= =?us-ascii?Q?3zIDdXHyfDH/ELjJJFYQGZSw3B0h/8g04POQFYhXmIbYqTvKpbmj2323m16D?= =?us-ascii?Q?M8nArlBrJ+nkahXVQrsFEfL+Za/eVUt3WKUqKy1hHvTdQaUebMdH7JzTuL8S?= =?us-ascii?Q?Sp4ztHt+E1EtlaxNmOfAlv/X+wrDvdyO4RufYltM/5SNiFSYpXDaLt8H4pME?= =?us-ascii?Q?AGoF8l0g9/B6j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2C?= =?us-ascii?Q?Acog49yUUS5YgzYfN+k0gJkXObq94gg7zD+/kbHeBcMk0+rZQY9UjNk1jc+o?= =?us-ascii?Q?cCPmnw3YVbxlZAO3QWlE764dS2oAqN48MFbXDdrlBybSCnLUPneOws7ippB6?= =?us-ascii?Q?FfV1Uyen0aDruaUvF64pEz2fnn3tfWm1LBJcq8tse9w0kExpoytbVIHBwq7m?= =?us-ascii?Q?BCbQsL1haqbqNoFPpVvxXkE4GPATyqdkX8qkhqX8W1hgjPHrfR1xfBIq34zE?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-1: c0kizcCiHy/oxmCm30nYUJTkSrAAnFZq4CffnlHVzWYHhD10Xgya389fvPf6L0LxgsziowpkETkFTUUOztN85cZCYZ+cjMO2D/6vn3Ba+ARBLARNklraGfyvuWgX8uSp57rJQkKblktNJ6F7C4nr4mALU5efsA1nRW9jJMNasrtus+qHguI5VpmxJ3Q2Tti4swfDSDnMTrN9wX9E3JAwDP8H6H/7McTr4omOT2P0stE1BNWP2MWGzxq0Kzr7YciEL2tJUTrkizFUuhS6bmLJV8yAxQUL+K1Q6+bGwEID/kXo0L4U8hvcZXUQ2pp+V67lTbROuDHlKNrMUb8D0knf7AHn9lVim3Ys9uBnSt+FOOPqcjghCJN1e/NYeO7mtSEgwZHBX0nz0yIO5ES+cSyaPrr6VUyuttQzPJ+wY3euR+lV6rff+RC2teTnsSDUbY13Ks3jFUNulfaiKQ== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8967f4de-09d0-4565-3cc3-08db7d630da9 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 14:20:58.9730 (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: Uh7dExaLGoAeaB4EdGGlYh0AUpcPhMy1pTZVdSpi01K/YVDsfuo3jiHKZPvOXISc5AMeNpdPvGI+jZe1jP5fiS8rAm458v/W3l1evN5z4+c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4732 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-05_06,2023-07-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 spamscore=0 mlxscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307050129 X-Proofpoint-GUID: N9TcgseTwKHoJrT6QnMKAynJnMLWR974 X-Proofpoint-ORIG-GUID: N9TcgseTwKHoJrT6QnMKAynJnMLWR974 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, 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 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 --- arch/riscv/Kconfig | 44 +++++++++++++------------------------------- 1 file changed, 13 insertions(+), 31 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index b49793cf34eb..8a3af850597a 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -647,48 +647,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" -- 2.31.1