From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 175D1ECAAA1 for ; Fri, 28 Oct 2022 22:19:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 80A9D6B0072; Fri, 28 Oct 2022 18:19:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7BA9E8E0001; Fri, 28 Oct 2022 18:19:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6D0476B0074; Fri, 28 Oct 2022 18:19:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 5EBB16B0072 for ; Fri, 28 Oct 2022 18:19:51 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 319F116134A for ; Fri, 28 Oct 2022 22:19:51 +0000 (UTC) X-FDA: 80071776582.28.F7EE8FE Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by imf18.hostedemail.com (Postfix) with ESMTP id 8DA6C1C0014 for ; Fri, 28 Oct 2022 22:19:44 +0000 (UTC) Received: from zn.tnic (p200300ea9733e788329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e788:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 80CE61EC0528; Sat, 29 Oct 2022 00:19:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1666995581; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=TfhnsJUpPMTXVXSAObYcxWoYzhndg9xgfrbCtO8qJg8=; b=biUeAUKviqathMxYm+Bwp2HnXAPF3Q0cZ9xpG1gNXK2n1zQAT9gAJrA9ecY15dFOwNJx72 BU9WupVYS4qRsVX/NFtxogp54qzVsLcpqjfMgYq/IgphWfOW+vlZEeyWrDj9T5skvB3j4c k6GBeC0u8oqcEm6ue0er+Ip0x7VnrnU= Date: Sat, 29 Oct 2022 00:19:36 +0200 From: Borislav Petkov To: Eric DeVolder Cc: Baoquan He , david@redhat.com, Oscar Salvador , Andrew Morton , 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, 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, sourabhjain@linux.ibm.com, linux-mm@kvack.org Subject: Re: [PATCH v12 7/7] x86/crash: Add x86 crash hotplug support Message-ID: References: <35c98ca6-10f8-b248-78c5-99fce7e66c65@oracle.com> <43f16833-add1-80c3-3bf8-5a6a05e75be6@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <43f16833-add1-80c3-3bf8-5a6a05e75be6@oracle.com> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666995590; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=TfhnsJUpPMTXVXSAObYcxWoYzhndg9xgfrbCtO8qJg8=; b=T11qUf1a4VDxiAe3XuQv7BKX+UCV9fEiXR1Vf9PfOhQaCJn7LlqZ/c4Kd12IAg+bV1UsyN QzAsvGOdVdn4e/ZCug5fBrPr+KboXOCqzstAjMdK211AKu/uea0wdk2bA95egDoDM8dYID 3tUY8p/Gz7OqVTP591UzgcNUMD/mw1o= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=alien8.de header.s=dkim header.b=biUeAUKv; spf=pass (imf18.hostedemail.com: domain of bp@alien8.de designates 5.9.137.197 as permitted sender) smtp.mailfrom=bp@alien8.de; dmarc=pass (policy=none) header.from=alien8.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666995590; a=rsa-sha256; cv=none; b=pL8p19IVoReGi0Gu7f/kvrxMqbJse44XL8JmpVwphU4s/z3iOes4QIUP7gey0VJZewgLYr TFLmM07gS7f809OHcftqi9NYmy9mEwzmiTXATBNleHJsd7+HfyqSYJcUmB0iJzQ6Nk5N2m 4KjEEuCS7ke3hu4CLEKnuXYTLI49yU4= X-Stat-Signature: puzn4dfdkgep83ooaq19xk5mpbdq1nxu X-Rspamd-Queue-Id: 8DA6C1C0014 Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=alien8.de header.s=dkim header.b=biUeAUKv; spf=pass (imf18.hostedemail.com: domain of bp@alien8.de designates 5.9.137.197 as permitted sender) smtp.mailfrom=bp@alien8.de; dmarc=pass (policy=none) header.from=alien8.de X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1666995584-409466 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Oct 28, 2022 at 04:22:54PM -0500, Eric DeVolder wrote: > /* > * For the kexec_file_load() syscall path, specify the maximum number of > * memory regions that the elfcorehdr buffer/segment can accommodate. > * These regions are obtained via walk_system_ram_res(); eg. the > * 'System RAM' entries in /proc/iomem. > * This value is combined with NR_CPUS and multiplied by sizeof(Elf64_Phdr) NR_CPUS_DEFAULT > * to determine the final elfcorehdr memory buffer/segment size. > * The value 8192, for example, covers a (sparsely populated) 1TiB system > * consisting of 128MiB memblock size, while resulting in an elfcorehdr > * memory buffer/segment size under 1MiB. ... and it is a sane choice trying to accomodate both actual baremetal and VM configurations." Yeah, it's a good start. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette