Received: by 10.223.185.116 with SMTP id b49csp618889wrg; Wed, 14 Feb 2018 04:27:53 -0800 (PST) X-Google-Smtp-Source: AH8x227JvIzcva4b6Hw25ts/3pVV3AE7m+iSLag4r8mt/Qq6HUFGaUV4ZarBuonlILT0X5b/gmsy X-Received: by 10.101.78.12 with SMTP id r12mr3788303pgt.33.1518611273820; Wed, 14 Feb 2018 04:27:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518611273; cv=none; d=google.com; s=arc-20160816; b=SCURgvaAPqoEMXP8pNqMoNJIOQ5wiWjxJ7tykSkGMKJX8jL9/3M7/U0nhhl59LzEhk fwO1xOXNJNQ6medVwVjnIv4Qp5mbmjr4aN7n0WV/FU4ACxin9xCY9MNzlAtIPAIQwDKD Tyf5dEvKTmibr5s99Wd0sBZ9WPBf3DDd/nIcN0UpuJK23h7zl9kbGIWxVoAhYQL/PNWX waV81UML9u8uV7TrwbYwtc1Y4ii4eLW5PWWQB57Q69at1nH9+yEW2wMHmV7k64WWv5ch L7Ry7ovEQtttFD/VshxMjl3NbdeEdGdXtFczAj2zrvFFOhLarDx6dizxd7t9Rmkh9tDs fJAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=5T15J9ikS9iBWC7YFvFVFHdvpwA3n456psJt7rD0dr4=; b=fEay4dZRS1K/kpHYkXQGpBo/a3APBjXMnEPOiwp/IjbPDXc2oqA4bDRekNoZbvQLdS CGcwmC4KJoeEDYWXnM2sNH5/01Ldhfw+/952qor8fIY3q9aiO4p4Qo5P75nZpJnGf3Ke cM56UiJOGogtCWz6Si3twA3ELkVJEPvY2ds2PiJnyPT5Aeon8GcfocWWg5pOrT+Y9baA jctIfq0VcLa7IRZXHwTEtwVoHo34jH+Ae3UMWgdoaxzqTVgJmeUrxpdOYBIB2DRlcS+8 0kwgb2fRh9jTyInJDEbWGTz6mCq//MNZwvpH5pp1ZPHXvgLYFBRbp1D0F9V733dHDhCz qrTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=h26k23Zk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o23-v6si1230866pll.7.2018.02.14.04.27.38; Wed, 14 Feb 2018 04:27:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=h26k23Zk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967547AbeBNM05 (ORCPT + 99 others); Wed, 14 Feb 2018 07:26:57 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:35163 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754615AbeBNM04 (ORCPT ); Wed, 14 Feb 2018 07:26:56 -0500 Received: by mail-wr0-f194.google.com with SMTP id l43so1269758wrc.2 for ; Wed, 14 Feb 2018 04:26:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5T15J9ikS9iBWC7YFvFVFHdvpwA3n456psJt7rD0dr4=; b=h26k23ZksPRzNx4E/tdxMlJXivRjOodYt7HXsdaMTQl8AshlfkXn6Q2uu1OHiKPd4J /Iblr9eqze7nOYoM36ZK02MGWPYuLi/16G1kIkISiO5tB7eQ3DfcHdd26yaMwpb3pHpx jVcG47owOeh3XtN5EzmT+nIqBQ15v3W5AYBpBq/bvapOS+eJXGejYqq7/4liZucdCVas dAOrLxSl84S2bxQ4dZPYITKBhkshw3R5WOUJZvG33KybjHT2Fj7TF8RiX8soTxglZm99 TAZM/WMSfsvluRP6UPnDLsam+YN9sPHResrmTZ2Ba5KVdkmMJCAshSR3BJ7D1qOetOGN o5cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=5T15J9ikS9iBWC7YFvFVFHdvpwA3n456psJt7rD0dr4=; b=l4dtGaSh5qgSBT7mLuKxulsqNHHIprSeOfRnQ5BNUcaNCay2tJO8SjUI0pYqaJPa2j lexaRWDx6mHx7K5qFfeWDtsIepQgvjpLn8c+qnlAqRwLnlYlwXWmAth8CQCLM0mhrWCN ChUJIJteBUJja2BbCSjZ21+Yfa334q1+fd6ZO33xY5I3Is+ZKtjNEzBWpw8xh8+OfeDY I8Pg3wrwQH2GYSLmTdZ51g5QbUOuJcBFa1SH9473RP2l2GRfJbUGAN6/zXm2ZJ+Dnca2 ejPLDzZcHibOgHt98sstaOWvDmaWOQMN5zlMmnzFOEy34sKyY4gU0a5AiJYZNQIUS61S +Zxw== X-Gm-Message-State: APf1xPAaZrmPovA/lmVrfOUQp/vnX54ueDnLmgtfySghZClXsIceqfDR pI2Q/thLAhZrhHESA80B5HQ= X-Received: by 10.223.183.74 with SMTP id n10mr4304299wre.124.1518611215302; Wed, 14 Feb 2018 04:26:55 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id p35sm8039813wrb.34.2018.02.14.04.26.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Feb 2018 04:26:54 -0800 (PST) Date: Wed, 14 Feb 2018 13:26:52 +0100 From: Ingo Molnar 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 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> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: 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