Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5111714iob; Mon, 9 May 2022 08:50:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1+zG4Fm4/wJogsHoDYccDnaIDyc5pDjTwFeYPc5J0OBDQqUDLcjahDNQMEL3zdI52pMgv X-Received: by 2002:a05:6902:1382:b0:63d:be0c:2e7c with SMTP id x2-20020a056902138200b0063dbe0c2e7cmr14249471ybu.122.1652111439922; Mon, 09 May 2022 08:50:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652111439; cv=pass; d=google.com; s=arc-20160816; b=p7Z3JEUhWQkNew54qCJEZqLjIqISHrSF0yRu1frMPnD7bvo8BgrsfYV6iYnqmjEJD6 KXD/a/KFGqUv3P3p9Dy6kd3nf+LWFFvsDvVxlE65sOF5c8vuCvQvm+kkES3OGX33Q5n7 OFytFN4zeM61oeqGGD2dIvSFlFV6/eW+BwoVq/AK1qYguJ5HADgH5JC0gcAt+Hh4gHQL tkKJOA+unezFY0FpUlaYDgxGqU5CUeWUP0LDa6JRyvWBq9Xe6229uRpMYz0TkNqT8B9O fZbAbM8QgGWCq5R+A6Ob+ALfYjlHUzgsL5y/5D05kiJDaiCuaT3XYIEknVtNgLKiBP+v 5ZuA== 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 :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature:dkim-signature; bh=Zy8pjMdroPCKqkqYm03kO0Y2lU2+lTc5BuBv2enyBl4=; b=RuKzJCW+5YvDJjmHHEFsAAnxC/VgORUPNrkoIKhSWAH7CbB0SSbUvQjBoxSLbGeefl b3de15yZmLWWUmPO/y6497WDIn73dtGKKs5mSCdht9e39fqVcy3N4vEnWkOUxj8uYYIv p3MaRIR8tkkM0YijaLMQ51U0cucMbg1H9x2xn1yFulR8cpTR3bf7PNFS1+GknL+Uuz72 8ZrY4IeE1Qk7yCo7Qqq4LeaIH3yH0xM3IKkege5ynJN+YcmrEewxaFWODSJp8neTvamV Q0bMTEdIO1WzmnUcvHhBQnmWhG9N56zB4+OFAjPml2UKBbXi09lVUwjupL6UpHJUkcJ5 jQkA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=LlIcPbMj; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=VPjvDLlS; 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:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d1-20020a0ddb01000000b002ec00830724si9603572ywe.400.2022.05.09.08.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 08:50:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=LlIcPbMj; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=VPjvDLlS; 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:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8FF171BE962; Mon, 9 May 2022 08:44:06 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238589AbiEIPrz (ORCPT + 99 others); Mon, 9 May 2022 11:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238415AbiEIPrw (ORCPT ); Mon, 9 May 2022 11:47:52 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AD881BC8E6 for ; Mon, 9 May 2022 08:43:58 -0700 (PDT) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 249FTEgL023694; Mon, 9 May 2022 15:43:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=Zy8pjMdroPCKqkqYm03kO0Y2lU2+lTc5BuBv2enyBl4=; b=LlIcPbMjISSV6iQZKP/w+CJXwL6bR6ULdG7mTZz4Jz6VYUjOYqg8SiL3KHKLgrz9Thiv YuEM188eU7gnfkqr7VxJwArGVz7Miy71ayETKUaBEESz/QbZvZ6tL3bzWgg3yoSUZo6k vgZXD9Xix5SISu++47uC3P0dc1+Zv+Jod98/ACOrxELXiau1iLag7zZCR2A7I6cWdDQj B31fP+2ji3/1F7jFt2mXq9jGaYH36hm4vrJ75sPF+J9xDHP9erFzzpei9wqyapadx/xD KnO75cZEPpFB/H7KlL1gqEd7XNRDjBUwLkZpC5LqyiTbUNhGvD+9pC0bjndkXDq5Kv/z Aw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3fwhatbyaw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 09 May 2022 15:43:24 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 249FZGrV031562; Mon, 9 May 2022 15:43:23 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2046.outbound.protection.outlook.com [104.47.66.46]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com with ESMTP id 3fwf7155vk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 09 May 2022 15:43:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=izOhBTw/fjUK1X8NOb3ji+tv81DbwbF/jD7qDJUp9UdZGn/l+N4jhEahMCmWbJ3WzNjPQHhjvEYp5TSb64xwwiECNb4lw92iC7lyx/yu21UNll2loCAZmyOZOytqBVcZ2Un9TVCUrsiTefYZrRjfaYRru+Wwdk9WbfvfayGoDP0bydezF7gTO6UbAqA3KOyuPHrf9eWHE/o3LxwkXf44S/baP7xzsblMgxV+PDKiKV/vTR6/mXaSz3apX1D1TaVJUseXw8KjcVLKRC+ypaB8Y9F+EtSmTF4y2dXsFKXETu2UbIOEoXT23ogpXn7019AM34QKLuQ31k0jQ09fxDt/pA== 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=Zy8pjMdroPCKqkqYm03kO0Y2lU2+lTc5BuBv2enyBl4=; b=NVx5pFplRgN0Uwcqzl1ijIQ/n9rCDhDhtJHccrhneyThuCeDUTlAFFLgmPhB5UmVdhM2jt0d3VvoUtwfYDxzm4/7sb8yZQBPuXkhSnoONs1T5OV6So0bUuBu6VMMbrXXqlxhZTarG9u040t4fS7l/om+kqLdh7VlOWe3L+RqPfQLa4Cs4quLKBKKxU6LcZHshzcAGu1DvSQ0PuB2+n5Q4LRu9CNm/zYEc8I/GBLJ1aTunHsIheJ3p+xvQka9vxd6b+2FCuOIuE1O+UcWNS+dqvdzQuoqUXbpN9SyWEtQzY/z9V1jcoBmn9XQY+aPOB6LKXgp/Mtp7S7snIMXG+e6Mw== 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=Zy8pjMdroPCKqkqYm03kO0Y2lU2+lTc5BuBv2enyBl4=; b=VPjvDLlS3pZBoevbMCBRMX92teq+vO+hBuj1icLnaymPsvXm2jDVcTG86O09LnuUej4EKbGCkvk1kiJxzZCgjK9IczpzQKJOl8aYLU2IWwVJA+TMeAlyHQ5QrvTrPwgr5Edx5a6rYt401h+UGowrRLc6D+nWzYwa4z7t+zu55t0= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by CH0PR10MB4987.namprd10.prod.outlook.com (2603:10b6:610:c1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20; Mon, 9 May 2022 15:43:21 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::bd49:f0ab:b476:860c]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::bd49:f0ab:b476:860c%7]) with mapi id 15.20.5227.023; Mon, 9 May 2022 15:43:21 +0000 Message-ID: <2da2e67a-864e-246b-b9d0-673c7af937b4@oracle.com> Date: Mon, 9 May 2022 10:43:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: [PATCH v8 3/7] crash: add generic infrastructure for crash hotplug support Content-Language: en-US To: Baoquan He Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, ebiederm@xmission.com, dyoung@redhat.com, vgoyal@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, nramas@linux.microsoft.com, thomas.lendacky@amd.com, robh@kernel.org, efault@gmx.de, rppt@kernel.org, david@redhat.com, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com References: <20220505184603.1548-1-eric.devolder@oracle.com> <20220505184603.1548-4-eric.devolder@oracle.com> From: Eric DeVolder In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY3PR10CA0030.namprd10.prod.outlook.com (2603:10b6:a03:255::35) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f0968dc-0216-4560-539d-08da31d2a4fe X-MS-TrafficTypeDiagnostic: CH0PR10MB4987:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2uQ+w4YtNbWt0ct9e9BTiIbCb2VK+Usy7YYMWRAfnkryVDP3Mfls9A6TMMexDnyA22ZNdjgvZGCCJ1eXN3YKD29Tlwu+xFxLpV4XoMrgELmLYtCG9OUYvVAUh6iDUf/mJMKNY3i4+gbUh1LSmZ0olXNGys8bSggyvbPPTn3wrikKKMCWziq+cnmJv+EGFf1e/pHxWzaQ/byRcpgAIoIa5rDY84hGwBoIsNNYh5R6+y62dRqhPlV2qwtP+fnMw0sXVpG2qE6YMdepCgg/x7ZSb0d4aCboNDHVRgVcT1F1cFdkvGeDsrchXpGWg6m0PFnjH94HXPTCxrdY7Ye0an1Kz7UlUahMzTgyzrPmdueWye1lA1fimeI+tukjuqT2uYw5jDbe2+wYgkhPT3AiHrdQMNZLMA9BK72jH/llvAO0KES3bWckUpoCR1cPWZTkcsBIZbvHH8OQdNibhOhYjsNXZXvVl8mqVV6dMS5QXq0rdz7r86KpsRZndfIo5dkCNq0W7DSEjOqDJV8aTnY1kjv/eLxeIABZBuvlBuK/I5qt+xGg2u2wJtdGswMrJf2BPGGBsx36kUCuiF/v5c8j1RlvKIF2HMoF1lEo08I0KO2BVmQf1MmabcZrg+dg1AwIBh6zAupAVqVc9YK2Fw8Noz9GdoyD4h5gv9PNfd+8dlHOosJqdWPPHV0mbLpXUOyLFCYp01kgSM0IoyfBPQe8IVTCq7gpsxWAvn0c+hKOn/APmp9eFC2QtPXjWUUThh77TfZu6UdfxHmnNk+Um6XaCiGRxQ== 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:(13230001)(366004)(66556008)(6512007)(66476007)(38100700002)(53546011)(8676002)(66946007)(31696002)(86362001)(4326008)(8936002)(7416002)(6486002)(2906002)(508600001)(6666004)(6506007)(6916009)(2616005)(316002)(36756003)(107886003)(83380400001)(31686004)(186003)(5660300002)(41533002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RE51VWNudXEvWWVoTGVRYU1CRWJ3bTRSSzRaTUVZMnFoT1VXdlhyN3JDM0Rj?= =?utf-8?B?aEdDNHB0VlgyVG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0hSWTM5VEla?= =?utf-8?B?WWJEL3ZqNTdVN1JzVHhHZ2lLbXJxMW5nZzVRUlo2VGh0OTB3ekl6aURKc0Q5?= =?utf-8?B?SU9id2hhT1BBNyt2aFBUVnhBYlgvdGF0eG5aVC9NbjM4cC9WQ2tSaEFFNnYr?= =?utf-8?B?YUFkVmo2ajhHTXVUd1JpSVNXQ1BSU2t3UUVDYkxtR2JMMWVCUytIOVlmV2RH?= =?utf-8?B?NThvaEVvUGsrN3NKTGd1QURLV1YrOTNtWmV4bmtLYWVYbERrYzRJdG1TN0cw?= =?utf-8?B?Z1pyUndCR3VZYklKMFR0TnhVSFAreU9aMm1PU2RxQUNKTGhDcjR4QkNTUmYw?= =?utf-8?B?ekU4a0QvcGU4b2doT1c0Y3FhYzdobkJtVGlTbmM2OVdneisvRHRHdE1ZYlhl?= =?utf-8?B?NnhoT1hCTnBrRkJuUVcyYjA1N0JhRDRXcjB1aE8xVk9jc2J2S0VkcVpneVFU?= =?utf-8?B?Sk15YVFvRW8vWUpZdGFWSXRBNFFyb2J5cXBmRUd2S0k4TFlKbkpvR1BneU92?= =?utf-8?Q?n9DfmH3M/IBvUpGP/PgQrPyNjfoeN9+voTKd60065zVNQ?= X-MS-Exchange-AntiSpam-MessageData-1: pqMU9xk4Zr4A0g== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f0968dc-0216-4560-539d-08da31d2a4fe X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2022 15:43:21.1465 (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: NGToligam78HFlGx0tmuz/2KIN8bEM43UOS/RolEPVcmDQxHVO12rjDL2vPEIv7X9eTN38k5BHL42jV64+9qlDAL3G87sGsQeIH5ufSwS9Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB4987 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486,18.0.858 definitions=2022-05-09_04:2022-05-09,2022-05-09 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205090088 X-Proofpoint-GUID: msQ6J77npPx4zDtkWc8pDC6agaYAAPpo X-Proofpoint-ORIG-GUID: msQ6J77npPx4zDtkWc8pDC6agaYAAPpo X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_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 On 5/6/22 02:12, Baoquan He wrote: > On 05/05/22 at 02:45pm, Eric DeVolder wrote: > ...... >> diff --git a/kernel/crash_core.c b/kernel/crash_core.c >> index 256cf6db573c..f197af50def6 100644 >> --- a/kernel/crash_core.c >> +++ b/kernel/crash_core.c >> @@ -9,12 +9,17 @@ >> #include >> #include >> #include >> +#include > > Wondering where highmem.h is needed. Just curious. Ahh, I missed that. At one point in time we moved map_crash_pages() into this file, which brought highmem.h along with it. But we have since moved map_crash_pages() into x86/crash.c. And I missed eliminating highmem.h at that time. I have removed this for v9. eric > >> +#include >> +#include >> >> #include >> #include >> >> #include >> >> +#include "kexec_internal.h" >> + >> /* vmcoreinfo stuff */ >> unsigned char *vmcoreinfo_data; >> size_t vmcoreinfo_size; >> @@ -491,3 +496,90 @@ static int __init crash_save_vmcoreinfo_init(void) >> } >> >> subsys_initcall(crash_save_vmcoreinfo_init); >> + >> +#if defined(CONFIG_HOTPLUG_CPU) || defined(CONFIG_MEMORY_HOTPLUG) >> +void __weak arch_crash_handle_hotplug_event(struct kimage *image, >> + unsigned int hp_action, unsigned int cpu) >> +{ >> + WARN(1, "crash hotplug handler not implemented"); >> +} >> + >> +static void handle_hotplug_event(unsigned int hp_action, unsigned int cpu) >> +{ >> + /* Obtain lock while changing crash information */ >> + if (!mutex_trylock(&kexec_mutex)) >> + return; >> + >> + /* Check kdump is loaded */ >> + if (kexec_crash_image) { >> + pr_debug("crash hp: hp_action %u, cpu %u", hp_action, cpu); >> + >> + /* Needed in order for the segments to be updated */ >> + arch_kexec_unprotect_crashkres(); >> + >> + /* Flag to differentiate between normal load and hotplug */ >> + kexec_crash_image->hotplug_event = true; >> + >> + /* Now invoke arch-specific update handler */ >> + arch_crash_handle_hotplug_event(kexec_crash_image, hp_action, cpu); >> + >> + /* No longer handling a hotplug event */ >> + kexec_crash_image->hotplug_event = false; >> + >> + /* Change back to read-only */ >> + arch_kexec_protect_crashkres(); >> + } >> + >> + /* Release lock now that update complete */ >> + mutex_unlock(&kexec_mutex); >> +} >> + >> +static int crash_memhp_notifier(struct notifier_block *nb, unsigned long val, void *v) >> +{ >> + switch (val) { >> + case MEM_ONLINE: >> + handle_hotplug_event(KEXEC_CRASH_HP_ADD_MEMORY, 0); >> + break; >> + >> + case MEM_OFFLINE: >> + handle_hotplug_event(KEXEC_CRASH_HP_REMOVE_MEMORY, 0); >> + break; >> + } >> + return NOTIFY_OK; >> +} >> + >> +static struct notifier_block crash_memhp_nb = { >> + .notifier_call = crash_memhp_notifier, >> + .priority = 0 >> +}; >> + >> +static int crash_cpuhp_online(unsigned int cpu) >> +{ >> + handle_hotplug_event(KEXEC_CRASH_HP_ADD_CPU, cpu); >> + return 0; >> +} >> + >> +static int crash_cpuhp_offline(unsigned int cpu) >> +{ >> + handle_hotplug_event(KEXEC_CRASH_HP_REMOVE_CPU, cpu); >> + return 0; >> +} >> + >> +static int __init crash_hotplug_init(void) >> +{ >> + int result = 0; >> + >> + if (IS_ENABLED(CONFIG_MEMORY_HOTPLUG)) >> + register_memory_notifier(&crash_memhp_nb); >> + >> + if (IS_ENABLED(CONFIG_HOTPLUG_CPU)) >> + result = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN, >> + "crash/cpuhp", >> + crash_cpuhp_online, >> + crash_cpuhp_offline); >> + >> + return result; >> +} >> + >> +subsys_initcall(crash_hotplug_init); >> +#endif >> -- >> 2.27.0 >> >