Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2369406rwl; Thu, 6 Apr 2023 09:16:03 -0700 (PDT) X-Google-Smtp-Source: AKy350Zuj9qEOa2Lmj+geRdjMvTmy2LyPmlQSsYSMGgzIU+A5HyscEZrofU1hnYWL6jppLfkxDCs X-Received: by 2002:a05:6a20:4c29:b0:da:db55:4a35 with SMTP id fm41-20020a056a204c2900b000dadb554a35mr3588042pzb.4.1680797763361; Thu, 06 Apr 2023 09:16:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680797763; cv=pass; d=google.com; s=arc-20160816; b=Zf1nAGITa0fGvtUQpb5pqAElAHH+TRsB9hzBnzAZxq07Ahs6005PBtccylplM32ljB 6RR1vwDtfBIXjxBZfdc2+cib84morWcaxsrot/i9SV3HI4qqTnFxG8lxbxsdBNA8wfWd IZcWjenOCoK8e2O2AK5F/jC50YcFHbaynpOgrjtV3YJ9mlySL5MS+g173gt536ig5OwE PkJ1iCwhjJu0VZ9b2ZIlqKFhdTkbl7bRcblSllCqgppDrcj7jwQqe2P09PTPEGtylcJd AZVBuQb/5xXNvA/kIpUAl2sF3Aug8lxUrEyptJvB7JKW6RUZ4qyfvX2aM8xSfFiveJK0 oe+A== 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=jKZu7JhJ7+42pO/GDY3ChLexol4LtjfgPGqbNLai+pY=; b=t6hFE1SLkwyBu53/k/O+6kel7Q3QyhOd0d0m/lZyM6E9tEyodqV0E/Mn133mmlfRMz ZHA94EMqMPbGXqNndVMIMb5nYobUKdhGCBnGRv6/wWre+te1hmwY2tNSp3xI8p0qSLDN ezfHynYyH/hL27QeP5gZvpih65vQYzKxZ2nsI9gNvrPsPy+KkMo6OCJrITLrFYlWChNk UXcpD6SjArmVgCk2dkUuxGbcMTL6rR7Ksbx0FRWEt5K/5zFrmIQ8k7mRtwvE8XhvmSXS KutkeZlUU0yiSl9yAFKfXsdRK4MZzj8TgIjKBsOb5vd2b4i+3KEof+UeIlumnTQYdGOC gn+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2022-7-12 header.b="CXJ812G/"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=KjWCqvLl; 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 s16-20020a63dc10000000b004dacaa17ecbsi1561368pgg.559.2023.04.06.09.15.19; Thu, 06 Apr 2023 09:16:03 -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-2022-7-12 header.b="CXJ812G/"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=KjWCqvLl; 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 S239954AbjDFQNH (ORCPT + 99 others); Thu, 6 Apr 2023 12:13:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239848AbjDFQNE (ORCPT ); Thu, 6 Apr 2023 12:13:04 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 138F0A5EB for ; Thu, 6 Apr 2023 09:13:01 -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 336FT6Y3002661; Thu, 6 Apr 2023 16:12:26 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-2022-7-12; bh=jKZu7JhJ7+42pO/GDY3ChLexol4LtjfgPGqbNLai+pY=; b=CXJ812G/qepA3Mhe5285G7p+PiTFbLc6TZ1Vrqo7yiLd5zpPmLYwQnLFLIOIhnw3sDbP 3dYmmUKQP+fZu/BxKxzKGRAduL5eEiqJGyHCHA4LAjGHLLPfKhavEbg45xjBrhuLyUPD GZ+4FVMkr7QxQQGcMIfRPOMlB/iEMCqi0X+XmCsaUMrPrXoz3vjJyvxNenXpmYlwYyMa puvEIF1JSQSg1EnYOfwK+Ri6tb9XkG7qZKGXOMXFDnS2D3tAYF/Oi9lpAuDcSGJcabSY qt0bsQYihj5RISJ4M7XvbzVzdAB3RxR8B/jqfGlv826UrHkSLdpbO74mtmItvMgOvVGB FA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3ppcgau7uw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Apr 2023 16:12:25 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 336FA66k036693; Thu, 6 Apr 2023 16:12:24 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3ppt3meuqd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Apr 2023 16:12:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cwvTMPz8DuTlltMGLdWhKKi0PlQnFvhl15RUbKmCHAJDIOU39c6evyam60sPx5O8KuJbvRVhxcdfb4lXUT/D5afBCHUH3nURq+YNMefbzZ4w0u9/f68wOmc3DkmZ75cNGFWDY2KmsdMQmiXfOzrnnA66PwVOCOWj1ZPbH0qS+Y3uI+FRr+oFA9OU/QreEjInFKRacsOTUMIYwXl4TFot9CqihJAOjSG4Iyks2tDw+Ni5KnZU4k2RzvgmcB2UlP31secO8NZxnEZ/JwVjuDLQu4S9V53UTgp9PSG0U2uDjlW3liEDaT35p3aDGidr++5Xhac6grgy5qs9ZagVn0fRaQ== 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=jKZu7JhJ7+42pO/GDY3ChLexol4LtjfgPGqbNLai+pY=; b=j0IsW82oEaqxLO5WE9x8KeHhFecde+z4Wa+kzszyq62A+w/uBIJ0S9NX8zQqK8YVFT4fMBTWoLdfKFNnG0hdeRHTdngg3L0Ou6MQfpsGOhI/ygQs1usPMNLoAMo78IDj4oQfuSmsJy3Tvl62DZ43fL4ozmSZVFPpPbefjlI1FNti1++VvuQMOzdAYJAGBDHi/fh4CfABZ6juEzqTzF4aueo/kgi18YGNMSICMwR3dNufRekW9FMSt4AzwvQ24PkLN6uLUkAOQnkzgcSKRvc48vk9bSmykaxwY6LJLRMknjnYESJ52rNArN2AikjWqo1b+EsxV05DXK04jKyywnCt3w== 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=jKZu7JhJ7+42pO/GDY3ChLexol4LtjfgPGqbNLai+pY=; b=KjWCqvLlNEmIJozilZtwNHJNbAHi3Z2+Vxr+GJTSyHNC06rpPrnx4WHDx+cDeSzWTVQMnielj5NNTu3eAVww5aBkbZ0J6gqUUogYCacjnjlxHp0eJqbZA1Fk/NhPeKxqBFbLHEUE6+/WxbYVV8IMvsi/BlhCu2YS+yrEekTG7/U= Received: from CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) by PH7PR10MB6506.namprd10.prod.outlook.com (2603:10b6:510:201::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.35; Thu, 6 Apr 2023 16:12:22 +0000 Received: from CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::e9ed:8782:64cb:cfc3]) by CO1PR10MB4531.namprd10.prod.outlook.com ([fe80::e9ed:8782:64cb:cfc3%9]) with mapi id 15.20.6277.031; Thu, 6 Apr 2023 16:12:22 +0000 Message-ID: Date: Thu, 6 Apr 2023 11:12:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v21 0/7] crash: Kernel handling of CPU and memory hot un/plug 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, sourabhjain@linux.ibm.com, konrad.wilk@oracle.com, boris.ostrovsky@oracle.com References: <20230404180326.6890-1-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: SA9PR13CA0098.namprd13.prod.outlook.com (2603:10b6:806:24::13) To CO1PR10MB4531.namprd10.prod.outlook.com (2603:10b6:303:6c::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR10MB4531:EE_|PH7PR10MB6506:EE_ X-MS-Office365-Filtering-Correlation-Id: 7b7a48cb-7b5f-4ecb-8c8b-08db36b9b3c4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d0dZjjn1Uhc7IVbw2obmnPHAvKa0yinyYG3D3KgV6Xy+nLbC9FGaXcS5GvWcKoivlNnW5AussNU1RRl/V3FCW926/IRaff7KWkSOlqmOrhMA/OaWt4BgZtlguGs8eywNp6EjOuMV92zvmhq+7VKv2DBFJ4L5YqSqRmtDzkI/E2mOoxtIbmQDfdy55afJy0aoVP/O1P+k11uenoFcorqFlpq8/SVo1/xsHN2dlf15pb/DhFLMBUhOjyuDpuJWCgMATmq/vWn9iA1x3ol52TsYXF2dXDxIPMTh/kkl0nFiULMTVOq71VRKzvzu0J1qF44aS01PrbtO2LDrXKzqcBhWXrXLeAejcpLzoBq+6lmggyJ/kS4GEC13ru4aGiU7AW4TQ0VAHMGxmNIBejYKwdgAImvTAsVnK/sMUyvo3TMm/Wao7GriEmtNATFZuiuM9afen/bwKJTF5djGYU/s05FFMmxpwK6uK0PekJO2oHxq3Q2RhiK2KMThPNK3Uw04FgMlFfnp7z4UNvCxeEmMUR6tPKwAKg9qWJ5ZkxJ3EE8o8d5PdpXIZIGf576wtyc1KIoe1OTTcZh3zjeI2uzyrGi6+SPgbvl2oyd/0OoEDnNeBL0babx3F3OXrL6RY/nyH7cGhZM3KPn9i8w4/7v6NawA1A== 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)(39860400002)(376002)(366004)(346002)(396003)(451199021)(6666004)(107886003)(31686004)(83380400001)(2616005)(86362001)(186003)(6512007)(6506007)(8676002)(38100700002)(4326008)(66556008)(66946007)(31696002)(6916009)(2906002)(41300700001)(478600001)(66476007)(316002)(53546011)(966005)(36756003)(8936002)(7416002)(5660300002)(6486002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L3pUUThWUlRpMlZWb1RxaG9oWG9QMEFFZ3NnK3c4UFVOcHNuRnZtSzAzU0kx?= =?utf-8?B?NVYxSzVBQTNYN0RzSHBpNFo3V3l5K1FmTCs2bHNFRjNQRkVveW42bGQ3REtq?= =?utf-8?B?OUhrVEw3RnJjVnNLZTdoaUlHNDVpa2VtaEdnVWxZUllKNXdwT2FjUVJZUXhs?= =?utf-8?B?TDVldW4rKzNiU0ZkVUpRS3dIU2VHMWp5cDdDVEt4WGQ2SDA4anhqTHAzV08w?= =?utf-8?B?d0E5blN5QTJoSXBIRGtZUUlGR1hWY3UyNFZyTENGVHp6bUpiSHdxeDlxZWFl?= =?utf-8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KXZM=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b7a48cb-7b5f-4ecb-8c8b-08db36b9b3c4 X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4531.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2023 16:12:21.8627 (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: pNFe6VIFBYIbS4akV76jkVN4aav83UGEoxSize21gVvJN8OV8RHMF56A9gxdQEiQOQCmYS96HjOcPQdJ/GDOlrbczRo5rjInIRSDofhCp18= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6506 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-06_09,2023-04-06_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 phishscore=0 bulkscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304060144 X-Proofpoint-GUID: nJG8uN-n_RDyvdTqEJQNOHsPvO8-36ea X-Proofpoint-ORIG-GUID: nJG8uN-n_RDyvdTqEJQNOHsPvO8-36ea X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 4/6/23 06:06, Baoquan He wrote: > On 04/04/23 at 02:03pm, Eric DeVolder wrote: >> Once the kdump service is loaded, if changes to CPUs or memory occur, >> either by hot un/plug or off/onlining, the crash elfcorehdr must also >> be updated. >> >> The elfcorehdr describes to kdump the CPUs and memory in the system, >> and any inaccuracies can result in a vmcore with missing CPU context >> or memory regions. >> >> The current solution utilizes udev to initiate an unload-then-reload >> of the kdump image (eg. kernel, initrd, boot_params, purgatory and >> elfcorehdr) by the userspace kexec utility. In the original post I >> outlined the significant performance problems related to offloading >> this activity to userspace. >> >> This patchset introduces a generic crash handler that registers with >> the CPU and memory notifiers. Upon CPU or memory changes, from either >> hot un/plug or off/onlining, this generic handler is invoked and >> performs important housekeeping, for example obtaining the appropriate >> lock, and then invokes an architecture specific handler to do the >> appropriate elfcorehdr update. >> >> Note the description in patch 'crash: change crash_prepare_elf64_headers() >> to for_each_possible_cpu()' and 'x86/crash: optimize CPU changes' that >> enables further optimizations related to CPU plug/unplug/online/offline >> performance of elfcorehdr updates. >> >> In the case of x86_64, the arch specific handler generates a new >> elfcorehdr, and overwrites the old one in memory; thus no involvement >> with userspace needed. >> >> To realize the benefits/test this patchset, one must make a couple >> of minor changes to userspace: >> >> - Prevent udev from updating kdump crash kernel on hot un/plug changes. >> Add the following as the first lines to the RHEL udev rule file >> /usr/lib/udev/rules.d/98-kexec.rules: >> >> # The kernel updates the crash elfcorehdr for CPU and memory changes >> SUBSYSTEM=="cpu", ATTRS{crash_hotplug}=="1", GOTO="kdump_reload_end" >> SUBSYSTEM=="memory", ATTRS{crash_hotplug}=="1", GOTO="kdump_reload_end" >> >> With this changeset applied, the two rules evaluate to false for >> CPU and memory change events and thus skip the userspace >> unload-then-reload of kdump. >> >> - Change to the kexec_file_load for loading the kdump kernel: >> Eg. on RHEL: in /usr/bin/kdumpctl, change to: >> standard_kexec_args="-p -d -s" >> which adds the -s to select kexec_file_load() syscall. >> >> This kernel patchset also supports kexec_load() with a modified kexec >> userspace utility. A working changeset to the kexec userspace utility >> is posted to the kexec-tools mailing list here: >> >> http://lists.infradead.org/pipermail/kexec/2022-October/026032.html >> >> To use the kexec-tools patch, apply, build and install kexec-tools, >> then change the kdumpctl's standard_kexec_args to replace the -s with >> --hotplug. The removal of -s reverts to the kexec_load syscall and >> the addition of --hotplug invokes the changes put forth in the >> kexec-tools patch. > > Other than the nitpick in patch 2, this series looks good to me. > > Acked-by: Baoquan He > Thank you! I'll await your preference on memory range handling. eric