From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933614AbZIDKJp (ORCPT ); Fri, 4 Sep 2009 06:09:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933582AbZIDKJo (ORCPT ); Fri, 4 Sep 2009 06:09:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59163 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933577AbZIDKJm (ORCPT ); Fri, 4 Sep 2009 06:09:42 -0400 Date: Fri, 4 Sep 2009 06:08:35 -0400 From: Amerigo Wang To: linux-kernel@vger.kernel.org Cc: Anton Vorontsov , tony.luck@intel.com, linux-ia64@vger.kernel.org, Neil Horman , "Eric W. Biederman" , Andi Kleen , Ingo Molnar , Michael Ellerman , "M. Mohan Kumar" , akpm@linux-foundation.org, bernhard.walle@gmx.de, Fenghua Yu , kamezawa.hiroyu@jp.fujitsu.com, Amerigo Wang Message-Id: <20090904101102.5220.52114.sendpatchset@localhost.localdomain> In-Reply-To: <20090904101047.5220.20618.sendpatchset@localhost.localdomain> References: <20090904101047.5220.20618.sendpatchset@localhost.localdomain> Subject: [Patch 1/8] x86: add CONFIG_KEXEC_AUTO_RESERVE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce a new config option KEXEC_AUTO_RESERVE for x86. Signed-off-by: WANG Cong Acked-by: Neil Horman --- Index: linux-2.6/arch/x86/Kconfig =================================================================== --- linux-2.6.orig/arch/x86/Kconfig +++ linux-2.6/arch/x86/Kconfig @@ -1482,6 +1482,19 @@ config KEXEC support. As of this writing the exact hardware interface is strongly in flux, so no good recommendation can be made. +config KEXEC_AUTO_RESERVE + bool "automatically reserve memory for kexec kernel" + depends on KEXEC + default y + ---help--- + Automatically reserve memory for a kexec kernel, so that you don't + need to specify numbers for the "crashkernel=X@Y" boot option, + instead you can use "crashkernel=auto". To make this work, you need + to have more than 4G memory. + + On x86_32, 128M is reserved, on x86_64 1/32 of your memory is + reserved, but it will not exceed 4G. + config CRASH_DUMP bool "kernel crash dumps" depends on X86_64 || (X86_32 && HIGHMEM)