Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp94279rwd; Mon, 12 Jun 2023 10:31:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4778dpr+tNEr/BQeZMpsSE/a97NYQFx5/aBVxTdmsS++fIsfk4RABbMkeZ1+EmOLTTQM5w X-Received: by 2002:a05:6a00:1a4e:b0:662:b5de:27f6 with SMTP id h14-20020a056a001a4e00b00662b5de27f6mr11195777pfv.17.1686591074379; Mon, 12 Jun 2023 10:31:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686591074; cv=pass; d=google.com; s=arc-20160816; b=W8QQ1DMrD62qh43rUvhPz3FT+18DU56SNj4JOmKSVjZ6nHTk8f1Jf10afmRa4Ic/cs IVKridzG/0RbpiC0fqySwx3Y9IncJL//QKIBWZ0lMvsPPznEXFdiSjGQAfapaoh/w7Ns /1fCCj7bRuJTp6pCU/cs1WBOQlAf2Y3qkL/skKvSb29STlMp51BD5Hqk0GGcUM55AyIl I2nhj6FqY21k/0M6VO4aRssEvpknG0n1cey4KIeHEHD2mBIHCXLwomzFJrO7m2PvBKgz +jm7GAFeWbOa8tWmT1LMDvICR+lneMgH84Ou9SkZ7I4H8ERJIejfLDjUV6W2B+EBSRhO jhZQ== 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=K6Wl8WFhSi7HkJ9yWjbw3KvBSLd12QHQlHGVwW7zkD0=; b=0wO3UkOOHBAL3x+jH5LOh6Md0v/WQYwr+NylwJpaiLIDYEZXU+zpf8cCUYKJyZ6j1s fC6R+WXh6PTogpCCqzsbxkZHno5+UUyzY3M0lMQkWigUwpLC58cTeIuu1sSdmYM47/AT dOs/8UoXTNqGRtEY+CD1QKbRfHaLxS14Quw0JZ6+kigK3oaK6SfVMEo6hp6Y0g4fjXXx M+d6qEzdkpFymSDeADcw8W0m9qe2YOQKjn1BSAze6LiJCWwrkqpa4v6KyN5gZdJM8eMC 0+Dl2cDPCN9hKJWAOgWGEMFigsg/7Ig5GC1aWfzAXfsgKqjZx7Rx7GdDgPQrPSAqJ9jH CSvg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=Jsvc7WXA; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LVgg1acn; 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 k18-20020aa79d12000000b00655079704afsi7068751pfp.119.2023.06.12.10.30.59; Mon, 12 Jun 2023 10:31:14 -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=Jsvc7WXA; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LVgg1acn; 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 S235632AbjFLR3W (ORCPT + 99 others); Mon, 12 Jun 2023 13:29:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237477AbjFLR3N (ORCPT ); Mon, 12 Jun 2023 13:29:13 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DABDB129; Mon, 12 Jun 2023 10:29:11 -0700 (PDT) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35CHOCPT001643; Mon, 12 Jun 2023 17:28:49 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=K6Wl8WFhSi7HkJ9yWjbw3KvBSLd12QHQlHGVwW7zkD0=; b=Jsvc7WXA1UZuEH5OZyvF01K8rTNF1XUgRilOFiYSZDjV0lNhoobfXkih7gI+adNbvvUS 5KX+PxDxhU3GS3pjYe4TnBU+OZf31tMcRAGLzH9QYLXzG79Yza/t9E7oxwTU4YwKrZAW t6j4DisGS6cI4HsWT6STmOmxAy45i3nutgbvvE1xka2C0bX2Ck209sSO0dLVAuyTuarf hMlzORPuOgMbW1VF3ZRhqa5pG7s3V+cgDtQqud420K2w6eKbd/OOHI/DT1vVp+FtDuwv ieOWQmAVgRQPlBPTan7inwqbtroEsvqiKe6mnYowMbI/rLXdpqb688EsQixTv3IjS5yQ gw== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r4h2akgr6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Jun 2023 17:28:49 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35CH4MlC016344; Mon, 12 Jun 2023 17:28:48 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2172.outbound.protection.outlook.com [104.47.59.172]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3r4fm32y0u-8 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Jun 2023 17:28:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KmomHf+D6vw2LRh4/thkudSVsnzIGJ5NYPPWYAKBErdACMgoQgUMeNQOsZu+f29qYfJiCIgWeh4wskpaxv6uKZpL+OUZrB9X1hSiN/zHn1Zh8jiiEhtZ10CLJnRYZebBxNhASqMVTBN7YlgiuqhPsLE4gj4cEQjvzjKfwJ+etk52YJdCPXysHOJaLf3VHa/J3pcbv/2hwQBqzIKfqw8AY2YHeaCbMkxCO2kLQ49zYoW7UtIJvcH81HvFaXYC7Xh67sXrCKKPzzZOm5z+9rqWvujWOc/Nj30o8o0IwuPclN+ZRB8jPXONeqRHh648UF5DNsZjnoIuiJrjLheft2wspw== 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=K6Wl8WFhSi7HkJ9yWjbw3KvBSLd12QHQlHGVwW7zkD0=; b=jiMYnQ2bMxoXdB7AE2Jz0vOBqA0eM1CVsiD7rWaXwqik1+RUYKDWbpxQo3KOamE4WOpZteTN3B80RwIcYX2WUEDS8ZT40OI2ssIxk45v1703gNWAXPr13h8oIUGmTml3Ljya9Nty3ByHPh2EsERRlDHc6vD6y+BZPBTEApm0zSm7h63MkGKk0W+XEEjUAQ1ca+m5W3UB+EkfRpjTQmPSEOEB5vfISVtn3L12Eor6S1qU2aIiYi5moIS1Kxm4tVjtHGm8ISQ13vHbRTADBZpN8fM5qcO54aIoR/KO+uIIHX/1h5gtpktBF+woVKpglJ632Q4UGzhXsG+OoJ5WxfBqDw== 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=K6Wl8WFhSi7HkJ9yWjbw3KvBSLd12QHQlHGVwW7zkD0=; b=LVgg1acn3T1Sp6kJdAVczUOu2lfkruNcJ1ZkLeAYKsjS5u9AYjtKyEeVhmS0erqQDw6mu8CXS72FOIiaRv1BHulYkX9mItp3JsiG9hohH1q34qIIOEh50XhVTsgXr2MwNo8+6QSsyX6tpE/4mYAwJ3iSUR8d9rYrVCoZmCJbEYg= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by MW4PR10MB6509.namprd10.prod.outlook.com (2603:10b6:303:21b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.29; Mon, 12 Jun 2023 17:28:44 +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.6477.028; Mon, 12 Jun 2023 17:28:44 +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, 86@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 v1 11/21] riscv/kexec: refactor for kernel/Kconfig.kexec Date: Mon, 12 Jun 2023 13:28:03 -0400 Message-Id: <20230612172805.681179-12-eric.devolder@oracle.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230612172805.681179-1-eric.devolder@oracle.com> References: <20230612172805.681179-1-eric.devolder@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY3PR03CA0002.namprd03.prod.outlook.com (2603:10b6:a03:39a::7) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|MW4PR10MB6509:EE_ X-MS-Office365-Filtering-Correlation-Id: 97333584-713b-4059-d577-08db6b6a7926 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AByc0Rhp2Tjq2d/HSGB0hwTuzYLZ+30VABIX9G/lcwOvkwtFXEr/EaT+d/hLLIIzKcNwYlrXTcgtTqIJ/Tdd+YjxViI6kSlaogHCDGiInFYoRBuii0IrKcXr6A9UE4IBQFUSMNaxvgbLUC61QJGz074o/gudTVak5FcaW1fENeGD+lncj49EfwY6yo6+dZZzMmdb+hb2yAAqnjd4nTXu6eqkBb1TQnwS4jEENQrMtyxjECxE16NI6kxCkhaAr5wCQDBhFzMGjA39hBWLXK63JldIrOnM1fZiwQqeqbgroWV+TDb5Sbc0d80abzN36o2WflSBJRKd6vwRxdtFXlETPpfZG4zlO/6ByJbjTrIFNrJynk9B3cupePo7OKywzB8pYpfXlVmN2+Vcwx1WPVSCrTJwGBNu59x38FcmpHrbyz+quSaXbVwW38IF/YTz17UDGL8+xcMPPgf0igRriGANqrpQPTWcPA7i1zD9W9vKMTIbxako5kzqk+DTFG9e5LYW3scWScSLzbwewY03kMTo4a9+qMt+sHZh2ghQuhYXfE12qtf5Xss8FX3fSbbMIywdnZ8VFevJkIBeX/giLQ0FL0eCc5HUpNgZ39lb2E9ka8k= 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)(366004)(396003)(376002)(346002)(39860400002)(136003)(451199021)(66556008)(66476007)(66946007)(6666004)(107886003)(316002)(4326008)(478600001)(86362001)(36756003)(6512007)(6506007)(1076003)(26005)(83380400001)(186003)(5660300002)(8936002)(7366002)(7416002)(8676002)(2906002)(6486002)(7406005)(921005)(41300700001)(2616005)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?nqLPiXmVdfDlVI0IVugEvO2V9uLzW41/6F34nMXIGBNDQeVSTxI14Hl/C1nF?= =?us-ascii?Q?+SEOEmo148KaxjQ4PJZ8gtm7OQWlZLoEc4k3LHEx38rJWYk9dnlQ2wRlZoJ0?= =?us-ascii?Q?+SATHKk4tBC4R625fLMbr5YYbn9yvZkbpB0L//U8PtwTcQ6pcFipTaebHhUC?= =?us-ascii?Q?qnk8BEaSDWauNKRRh7fU4UyqMI7dc0ANiPYvjaCsQSv3eFKVU7vc2V6QCo+G?= =?us-ascii?Q?SaCF/u7gfRFsO5FRmrTne6fR5xqyP3F9WXjAV9o5e/0TuksY/hV9EXYm1Ey7?= =?us-ascii?Q?YRUoh61ijiCrDBsF4XJNGo2QvlGNqeKPLTBCwQ8pdiHSWlUxJtIqg4OBtwbI?= =?us-ascii?Q?93qj8B23wcmnY4o73Kk7Q/tKlIuiuXbtce+cMc3wEL51Qit+jNxjlW2twWmh?= =?us-ascii?Q?2aJPZzi2fvJ+T3RNV99TNXj7oCZ+0LU3U0B5NhGPJwqCCqooYOLSdCiA+cBx?= =?us-ascii?Q?oMnXJSIAkZNUo9kx3LCqbzlj+tGPyA4mhPR4178LkV5tL8xIrdTJKi69TJ9l?= =?us-ascii?Q?lRx8XIr1eouUbYbIIm1bKmiLWwnmDkFVSxZsV0zphgT3OVjTNMcQfMnaQRmQ?= =?us-ascii?Q?OnHCWyfi4TB5GVFsEh5E0iq7KFWRmDY32Y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+wAb0YAZCEb2Y0UoF69NTi8icanbIKbpsa0nHERhKGEk?= =?us-ascii?Q?jH0439zIejkdTISoMm861ibArLe76p3owK/x6qgD213wTSiNx3f14Ult6XN6?= =?us-ascii?Q?+w=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?us-ascii?Q?2kT3RFizbGqNH+/aAod6zHfdsHk1rrfOx9bV18aab5S+uP8PZWi1ix3ROnRK?= =?us-ascii?Q?ufuP/lU5d+6JyYzH9YeTRNxAYX1T+b2IGbxnuwjJ9/YMrYh1Rxs9n/EjQra2?= =?us-ascii?Q?iAYPWvEUi57R5fi3XkF5UkGFstjjyLqWeAdEXD4reRe00fgroQylCaqEYvoM?= =?us-ascii?Q?jhDB7tvzD3TJLSmUAEfPOqZxn+9qG01g4Fdfrx2cUAlMjaOO9KLooqfmibSc?= =?us-ascii?Q?eZzew4PsIWtLz6+GemKNSnf8EY/NWjOOKhQDp9pV7GpZY5HV4s7/56pDgwU/?= =?us-ascii?Q?d2YQp5jbsuexZRZuUhvBsnXd+9t2huK9y+0UKrhdpp9jxRzmGSBnmuHT4q09?= =?us-ascii?Q?xmMq73rPW53Lg1wbomLk7OOhMGKY80bb3YG5hc0F+hZBtD97PpGGke027sN9?= =?us-ascii?Q?ulmHJpMpP5BLyWlS6FKZ4lMuGTaoJznvpOeNZV8x67hzHijXfNp2gJvlBaPn?= =?us-ascii?Q?vI8AEzbLbdxihKVTSq9YK3hjEqSSgbsoPp2Wk0ZNEueNxFwYKGh3IG1MtMHP?= =?us-ascii?Q?AFqf6qNAgbc4eKyMTvCKQhhM2D+aST76hVC5hiH7TIp88GEbxqZJXAaaHFLx?= =?us-ascii?Q?VnEGb+45tbabDAGYkGSLMZnDl4KTAlloaZnKzFkUCKutDLOKBVf3kOjK7y8T?= =?us-ascii?Q?wPMYfCiiMrwQr6ofIebTASCy6SsmwpY/ZR5iltJja4Ah9SwWJn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VWBK9gJZj4JSe+ij6+3r4ErIHVCCABYTld7J7gGGlSe0gH?= =?us-ascii?Q?mGcEUBkoLqhEnLtyWjeu9OHh6CbZCRuFr2D9TvHfdiNEIXqf9KX7MbX6PqzY?= =?us-ascii?Q?4aqzKCsr5LRJWh2AwGHdAZJFFzh5SETwYsSJTgo64JRJI7Ul6SAYVIoNfq13?= =?us-ascii?Q?nnSos+MrY9NoG8xxwTTtwpBwyCm9tlS0dfc/jX5cq4bJK01dRM/0P01dKloc?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-1: JQXmBKu3ceR4kGzS/xt3s4rYQkTjasmUjFG4TYym6UK3MBerJKbjHqgu9sIXYH0azuIwlIuBLHJ3Wn9RW4mIJ1iamoXlwgPMqLaQfhMF58S7V0khS9F9LxeLxgYOMOH08rld3bgfm99VcU8YIiWBju6M2q1Ifni6eOiDWXo3fnr92voAujQaPXPdq25YRg+UgCc4nyaDuEvkLOmpx7ZNobjSgKH791a1WMbBdBux4Lv0iGnEqHxarndn5TZMfkjbdC7xpw88GCg86Vd84HnlknkfiQ85vnJR7VVlXv4lugEt6IGaaLHcZC6l/k4PGnzWF1c6Spfta1bq234VaU1M9PCEKTo9Fc8VHqdHIa9kpv4dAQYfCLCv4oAbi+dOG2BOGjyE3/Wj88cK3KlvK1IcQcRUgjeEFS8EIJQDiwAFUdUodhalf68yGu3MVBdtEmvUm/LcUTKAXFiPQg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97333584-713b-4059-d577-08db6b6a7926 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2023 17:28:44.7491 (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: QTvX7Zy3tHVNCr8/uzPA9ZQ3JS1fsvxHN2xWhUjAYJK7zOAEwE1tJ3JN47vUt+ToJ9PiMHNFSgu+w7bXHW31vGS6SKt7dsbXR1xaR0XW9Ik= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR10MB6509 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-12_12,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 bulkscore=0 mlxscore=0 spamscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306120152 X-Proofpoint-ORIG-GUID: 8tbfFcKUB1tUEFr1Ez9tM5mBGFvsn4Wi X-Proofpoint-GUID: 8tbfFcKUB1tUEFr1Ez9tM5mBGFvsn4Wi 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_HAS_ and ARCH_SUPPORTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder --- arch/riscv/Kconfig | 48 ++++++++++++++-------------------------------- 1 file changed, 14 insertions(+), 34 deletions(-) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 5966ad97c30c..bcaf49007237 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -585,48 +585,28 @@ config RISCV_BOOT_SPINWAIT If unsure what to do here, say N. -config KEXEC - bool "Kexec system call" - depends on MMU +config ARCH_HAS_KEXEC + def_bool MMU + +config ARCH_SUPPORTS_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_HAS_KEXEC_FILE + def_bool 64BIT && MMU && CRYPTO && CRYPTO_SHA256 -config KEXEC_FILE - bool "kexec file based systmem call" - depends on 64BIT && MMU - select HAVE_IMA_KEXEC if IMA - select KEXEC_CORE +config ARCH_SUPPORTS_KEXEC_FILE + def_bool y + depends on KEXEC_FILE 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. + select HAVE_IMA_KEXEC if IMA 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_HAS_CRASH_DUMP + def_bool y config COMPAT bool "Kernel support for 32-bit U-mode" -- 2.31.1