Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3078354rwi; Fri, 28 Oct 2022 15:39:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6flYWKel5x6NzEPT7yYnC1aYE4/N1A62aoqL/0pFBE5pm76Z9+gc6a6iof9MDG3I2+CeH8 X-Received: by 2002:a50:ccc2:0:b0:460:4db2:5006 with SMTP id b2-20020a50ccc2000000b004604db25006mr1565418edj.369.1666996762970; Fri, 28 Oct 2022 15:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666996762; cv=none; d=google.com; s=arc-20160816; b=y6KoXjx5hL9LRamF4rFjt6TTBBmbCoS/d53o2W2YNNxTNHg1aZyPNWv8XtBhgC/m7P 1Y1Q06ZwZbyw01LLQrcX8BhP4CVezSyAF3fvk+WB2/CRXYPyWYFKNVJjzEeun0VrP0Xu j2+pyZNFrDUwm8YK77DaDI2ISvUfSBDtp48isXiO86Gmb+qGDC5elPp8wJ0rMWEGlyd+ EEzkj3ZD2ptYlESuXYvILq99P0AjxihhW0JlCPebih860ZZEOZ364o/mRtxrsWs3LuP9 899tyrOpPS+mKE4tnng0zILEjKs7wON9oXGXGm30/1klpdUVCOxTke+XVanc0lEwcKVy u2XQ== 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=TfhnsJUpPMTXVXSAObYcxWoYzhndg9xgfrbCtO8qJg8=; b=fEiGogQsatcWUTtRhnthML6VcsjvblxvZbtGwBkej4EYl4BRDDEWg6LNbgH3//xPzp 2qh/lYhf1PkSsdZsqI4YEwf/E9oYgwvjJwk1KzZ/UqkuE+iMi5JAjz+80o5dZjq0zME4 rP+ecZhEgdGdRCKZldWiZbViwV1FgP6gYvzBpOvoDr7x44yhiekAhiFODWPj5NP/XvmJ bEl5nHPgxRMKrPt4QmWUzGxLjx7xAIY9xW0ZRd9vyXUsgVm8nRCZcVQ+6X4Npejr+gZt zmuZ7BIftz4purknYoNeiPpSVZbZlDBdd0Wgt7mKLFniUh8mULhn5IlbsxhmiVdNWZpx Qcsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=biUeAUKv; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a1709065d0c00b007abafd4d7d0si5584495ejt.702.2022.10.28.15.38.57; Fri, 28 Oct 2022 15:39:22 -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=@alien8.de header.s=dkim header.b=biUeAUKv; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230138AbiJ1WTs (ORCPT + 99 others); Fri, 28 Oct 2022 18:19:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229846AbiJ1WTp (ORCPT ); Fri, 28 Oct 2022 18:19:45 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1BFD630E for ; Fri, 28 Oct 2022 15:19:42 -0700 (PDT) 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> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 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