From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f197.google.com (mail-wr0-f197.google.com [209.85.128.197]) by kanga.kvack.org (Postfix) with ESMTP id D3DD76B0003 for ; Wed, 14 Feb 2018 07:26:56 -0500 (EST) Received: by mail-wr0-f197.google.com with SMTP id d17so12863503wrc.19 for ; Wed, 14 Feb 2018 04:26:56 -0800 (PST) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 65sor1407561wrj.51.2018.02.14.04.26.55 for (Google Transport Security); Wed, 14 Feb 2018 04:26:55 -0800 (PST) Date: Wed, 14 Feb 2018 13:26:52 +0100 From: Ingo Molnar Subject: Re: [PATCH 9/9] x86/mm: Adjust virtual address space layout in early boot Message-ID: <20180214122652.pzcmiakssichuhn5@gmail.com> References: <20180214111656.88514-1-kirill.shutemov@linux.intel.com> <20180214111656.88514-10-kirill.shutemov@linux.intel.com> <20180214121049.z4cjsdwxaaq5gpv5@gmail.com> <20180214121910.yvnm7wcejpjux6eo@black.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180214121910.yvnm7wcejpjux6eo@black.fi.intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" Cc: Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Linus Torvalds , Andy Lutomirski , Borislav Petkov , Andi Kleen , linux-mm@kvack.org, linux-kernel@vger.kernel.org * Kirill A. Shutemov wrote: > On Wed, Feb 14, 2018 at 12:10:49PM +0000, Ingo Molnar wrote: > > > > * Kirill A. Shutemov wrote: > > > > > We need to adjust virtual address space to support switching between > > > paging modes. > > > > > > The adjustment happens in __startup_64(). > > > > > > We also have to change KASLR code that doesn't expect variable > > > VMALLOC_SIZE_TB. > > > > > > Signed-off-by: Kirill A. Shutemov > > > --- > > > arch/x86/boot/compressed/kaslr.c | 14 ++++++++-- > > > arch/x86/include/asm/page_64_types.h | 9 ++---- > > > arch/x86/include/asm/pgtable_64_types.h | 25 +++++++++-------- > > > arch/x86/kernel/head64.c | 49 +++++++++++++++++++++++++++------ > > > arch/x86/kernel/head_64.S | 2 +- > > > arch/x86/mm/dump_pagetables.c | 3 ++ > > > arch/x86/mm/kaslr.c | 11 ++++---- > > > 7 files changed, 77 insertions(+), 36 deletions(-) > > > > This is too large and risky - would it be possible to split this up into multiple, > > smaller patches? > > Let me check what I can do here. > > If you are fine with previous patches please apply. I will send split up > of this patch separately. Yes, the first 8 patches are looking good and I have already applied them locally, will push them out after testing. Thanks, Ingo -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org