Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp81216pxw; Fri, 8 Apr 2022 01:28:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7+p6/722kfaa8uIINXZSZl76b7g7OypIk6D4ble2rTzLO8zxzBtNlR9IW1kzd7BbD8xau X-Received: by 2002:a05:6a02:19c:b0:399:3007:c8fb with SMTP id bj28-20020a056a02019c00b003993007c8fbmr14596433pgb.571.1649406495991; Fri, 08 Apr 2022 01:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649406495; cv=none; d=google.com; s=arc-20160816; b=m2DNkGuocG57PKQZEh8P9ykxPNFu3QzZZT0wG68xRBBJmz/KSt1evZF3tA7+6vqMhd TaQXrOESuzZ7113YNwOZUZa09u/V8C/74VjkcxJIHR+9E5v4VYb+2ycdOqRvJGSkRmhq NUDLTBMiePuGC6XnCW1xJgcLS1cxnkhoCtaAemU+A7kPwr4nCsTjdpR9aG9vB5HdfgYS X60kp6jRNwQeSjUkebco/G7IO4UitJqti79wtgZIAw6EqlSKZNgy9rrsY+du8pLCd5qS A1yoAwu3kTWTtapKOzC2jIcfoGbFcN9n6lucJKwdsQYvomYjRepkUWbyyoGQyc3L0DPR HcVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=t9bfIQkql2j9TcUCqmraCaFGU4s4Y5bRorgJzCIZGMc=; b=ZR9XZdAaESp3UW6mSSL3qFTDqYxfGj8OHI5sICwzJTNgFukbiTinZT1Ms0VjLv5MKW vi1VFgcmtxxYF2aZqrwtXQG6cl/aWZKu4Vs8SQ0kP18eMkJNpW9DkAJe5GzO2kuoVxCh DP47d7+1FAzARhhVHNhqPrTgFc8Efr5Pry54LVumtEm8EdpMAlboYe0GTB3w5x2BuIA8 uwYfPpeb51nlK37wTZb2jfnwAO8E8+b8pfibNY18K+edyCk6dO1b3JohwQ8rFY1JlNql mh6lAF2Fp6KWeKpoW7gvqYhnNQLy792NVoTLul9/fxa49FNcSgplrsQ2WAI6spGsILg3 jIGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=G41w+SAn; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020a170903300b00b00156a405c568si227086pla.231.2022.04.08.01.27.47; Fri, 08 Apr 2022 01:28:15 -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=@redhat.com header.s=mimecast20190719 header.b=G41w+SAn; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230410AbiDHIJ2 (ORCPT + 99 others); Fri, 8 Apr 2022 04:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230062AbiDHIJ0 (ORCPT ); Fri, 8 Apr 2022 04:09:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CAD7F2DA9C for ; Fri, 8 Apr 2022 01:07:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649405242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=t9bfIQkql2j9TcUCqmraCaFGU4s4Y5bRorgJzCIZGMc=; b=G41w+SAn+EmYpaAkEM3ESi8qEDTz5kUe7GcL0ngxfDWPiAg/+YmcAiZ8S5Xd8eR3Kdnhhj qP/NDZg4yci0K/BcDPUAk9wNL1ijasnm33j5oVSu2q69I0hxcPUsXionaOHgwkGTtYkFRT f+HcUE+cBpFvapFzzyk7qJdmPtXk8S4= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-563-jFMIjZk2O0CNauJWX87WiA-1; Fri, 08 Apr 2022 04:07:19 -0400 X-MC-Unique: jFMIjZk2O0CNauJWX87WiA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C20123C11CE0; Fri, 8 Apr 2022 08:07:18 +0000 (UTC) Received: from localhost (ovpn-12-202.pek2.redhat.com [10.72.12.202]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7D18B54ACB0; Fri, 8 Apr 2022 08:07:17 +0000 (UTC) Date: Fri, 8 Apr 2022 16:07:14 +0800 From: Baoquan He To: Eric DeVolder 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, akpm@linux-foundation.org Subject: Re: [PATCH v6 2/8] x86/crash: Introduce new options to support cpu and memory hotplug Message-ID: References: <20220401183040.1624-1-eric.devolder@oracle.com> <20220401183040.1624-3-eric.devolder@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220401183040.1624-3-eric.devolder@oracle.com> X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 04/01/22 at 02:30pm, Eric DeVolder wrote: > CRASH_HOTPLUG is to enable cpu and memory hotplug support of crash. > > CRASH_HOTPLUG_ELFCOREHDR_SZ is used to specify the maximum size of > the elfcorehdr buffer/segment. > > This is a preparation for later usage. > > Signed-off-by: Eric DeVolder LGTM, Acked-by: Baoquan He > --- > arch/x86/Kconfig | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 7340d9f01b62..8b51d3196b82 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -2072,6 +2072,32 @@ config CRASH_DUMP > (CONFIG_RELOCATABLE=y). > For more details see Documentation/admin-guide/kdump/kdump.rst > > +config CRASH_HOTPLUG > + bool "kernel updates of crash elfcorehdr" > + depends on CRASH_DUMP && (HOTPLUG_CPU || MEMORY_HOTPLUG) && KEXEC_FILE > + help > + Enable the kernel to update the crash elfcorehdr (which contains > + the list of CPUs and memory regions) directly when hot plug/unplug > + of CPUs or memory. Otherwise userspace must monitor these hot > + plug/unplug change notifications via udev in order to > + unload-then-reload the crash kernel so that the list of CPUs and > + memory regions is kept up-to-date. Note that the udev CPU and > + memory change notifications still occur (however, userspace is not > + required to monitor for crash dump purposes). > + > +config CRASH_HOTPLUG_ELFCOREHDR_SZ > + depends on CRASH_HOTPLUG > + int > + default 131072 > + help > + Specify the maximum size of the elfcorehdr buffer/segment. > + The 128KiB default is sized so that it can accommodate 2048 > + Elf64_Phdr, where each Phdr represents either a CPU or a > + region of memory. > + For example, this size can accommodate a machine with up to 1024 > + CPUs and up to 1024 memory regions, eg. as represented by the > + 'System RAM' entries in /proc/iomem. > + > config KEXEC_JUMP > bool "kexec jump" > depends on KEXEC && HIBERNATION > -- > 2.27.0 >