From: nico@fluxnic.net (Nicolas Pitre) Date: Tue, 06 Nov 2012 18:40:18 -0500 (EST) Subject: Building for MMU-less vexpress targets In-Reply-To: <20121106225105.GD10187@jl-vm1.vm.bytemark.co.uk> References: <20121105173640.GR3351@mudshark.cambridge.arm.com> <201211051908.34291.arnd@arndb.de> <20121106122011.GE29853@mudshark.cambridge.arm.com> <201211061733.44781.arnd@arndb.de> <20121106225105.GD10187@jl-vm1.vm.bytemark.co.uk> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, 6 Nov 2012, Jamie Lokier wrote: > Nicolas Pitre wrote: > > I really think that it makes no sense at all to support !MMU kernels in > > a multi-platform kernel build, even if the set of included platforms > > were all !MMU. The kernel has to be linked for the physical address of > > the target and not a common invariant virtual address. > > Although there's likely to be approximately zero interest in > multi-platform !MMU, relocating at boot time doesn't sound onerous, > should it be needed. x86 kernels already do that. Maybe ARM kernels > will eventually do that anyway for the same reason as x86. We already have something similar but simpler: CONFIG_ARM_PATCH_PHYS_VIRT. Except that the virtual address the kernel is using always remains the same, even if the physical address can move. Although this is not the case at the moment, the ARM kdump implementation could take advantage of this ability and avoid the copying of memory around. Nicolas