From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753429AbcGUQSN (ORCPT ); Thu, 21 Jul 2016 12:18:13 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:37188 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753047AbcGUQSM (ORCPT ); Thu, 21 Jul 2016 12:18:12 -0400 Date: Thu, 21 Jul 2016 18:18:07 +0200 From: Ingo Molnar To: Andy Lutomirski Cc: Matt Fleming , Thomas Gleixner , Mario Limonciello , Kees Cook , "linux-kernel@vger.kernel.org" , Andrew Morton , Matthew Garrett , Peter Zijlstra , X86 ML , "H. Peter Anvin" , Linus Torvalds Subject: Re: [PATCH] x86/boot: Reorganize and clean up the BIOS area reservation code Message-ID: <20160721161807.GB30106@gmail.com> References: <7c190e9b3376002014fb99234ed5e5c64df86322.1469064662.git.luto@kernel.org> <20160721081438.GA26531@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andy Lutomirski wrote: > It would be very easy to implement this if we could handle overlapping memblocks > precisely or set a lower limit on the memblock allocator. Then we could block > off everything below 1MB or 2MB very early and then unblock it or temporarily > change the lower limit and ask for a single page for the trampoline after that. So my suggestion was/is to _permanently_ allocate the SMP trampoline page, and leave it also reserved. 'Reserving' a memory area is really just a kernel internal matter. We can still use it. No need to unreserve/allocate/re-reserve ... unless I'm missing something. Thanks, Ingo