From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752078AbeAWSOE (ORCPT ); Tue, 23 Jan 2018 13:14:04 -0500 Received: from mga06.intel.com ([134.134.136.31]:22013 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751547AbeAWSOD (ORCPT ); Tue, 23 Jan 2018 13:14:03 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,402,1511856000"; d="scan'208";a="12895276" Date: Tue, 23 Jan 2018 10:13:35 -0800 From: Andi Kleen To: "Kirill A. Shutemov" Cc: Linus Torvalds , "Kirill A. Shutemov" , Ingo Molnar , the arch/x86 maintainers , Thomas Gleixner , "H. Peter Anvin" , Andy Lutomirski , Cyrill Gorcunov , Borislav Petkov , linux-mm , Linux Kernel Mailing List Subject: Re: [PATCHv6, RESEND 4/4] x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G Message-ID: <20180123181335.GP7844@tassilo.jf.intel.com> References: <20180123170913.41791-1-kirill.shutemov@linux.intel.com> <20180123170913.41791-5-kirill.shutemov@linux.intel.com> <20180123173703.rrr7igl7xtlsawhf@node.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180123173703.rrr7igl7xtlsawhf@node.shutemov.name> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 23, 2018 at 08:37:03PM +0300, Kirill A. Shutemov wrote: > On Tue, Jan 23, 2018 at 09:31:16AM -0800, Linus Torvalds wrote: > > On Tue, Jan 23, 2018 at 9:09 AM, Kirill A. Shutemov > > wrote: > > > > > > But if the bootloader put the kernel above 4G (not sure if anybody does > > > this), we would lose control as soon as paging is disabled, because the > > > code becomes unreachable to the CPU. > > > > I do wonder if we need this. Why would a bootloader ever put the data > > above 4G? Does this really happen? Wouldn't it be easier to just say > > "bootloaders better put the kernel in the low 4G"? > > I don't know much about bootloaders, but do we even have such guarantee > for in-kernel bootloader -- kexec? There's no such guarantee, so we need it at least for kexec. -Andi