From: Andi Kleen Subject: Re: [PATCH 8 of 13] Add a bootparameter to reserve high linear address space for hypervisors Date: Tue, 1 Aug 2006 23:47:20 +0200 Message-ID: <200608012347.20556.ak@suse.de> References: <0adfc39039c79e4f4121.1154462446@ezr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <0adfc39039c79e4f4121.1154462446@ezr> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: virtualization@lists.osdl.org Cc: Andrew Morton , Xen-devel , Jeremy Fitzhardinge , Linux Kernel , Chris Wright , Ian Pratt , "Eric W. Biederman" , Christoph Lameter List-Id: xen-devel@lists.xenproject.org > + /* > + * reservedtop=size reserves a hole at the top of the kernel > + * address space which a hypervisor can load into later. > + * Needed for dynamically loaded hypervisors, so relocating > + * the fixmap can be done before paging initialization. > + * This hole must be a multiple of 4M. > + */ > + else if (!memcmp(from, "reservedtop=", 12)) { > + unsigned long reserved = memparse(from+12, &from); > + reserved &= ~0x3fffff; > + set_fixaddr_top(-reserved); > + } You need to add a dummy __setup for it, otherwise it will end up in init's environments or be warned about. Also it should be documented somewhere in Documentation -Andi