Received: by 10.223.185.116 with SMTP id b49csp612373wrg; Wed, 14 Feb 2018 04:21:36 -0800 (PST) X-Google-Smtp-Source: AH8x226vk7cf70BO8Tep2M7bxuTF5tFtvMD7TiJYt42em46XpaqTEVQL+pqV1wPY3bOGwomc7+G7 X-Received: by 2002:a17:902:8608:: with SMTP id f8-v6mr4419219plo.366.1518610896083; Wed, 14 Feb 2018 04:21:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518610896; cv=none; d=google.com; s=arc-20160816; b=hexY50c9Q8pTsiZxkJoWFM8RAMOuhigNh1LMPvmwtDb6/I6VKCEvkUM2yjlMwMomRU 3M6VtbbFXNj/iWJYdEO0CJADKH0FXh2dxea2xN1dhjLq4Q2/CSK4cJVdPBLgP1T2xTsF woc4WB/d3sHpfclpIlYhvckgdrYhg/2gbuF074j3D7tbX0Zc7NIVOcNDpn/P2oZsCPc/ nAFJwEBBQZUVFs1O2C9pBK8Rf+QgLp5mrVXVKnhwvjgQkSZoSXly1Gbu1WYrL3uXFvGn gRphnkF+gWwYY54yIRQA7NV5lR8LnohU94Lw4gKE0iRguHa2rsliBzHsoV62JIpDRtHd u8GA== 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:arc-authentication-results; bh=8vBnXTm5NjCYpNK7U2GOHraCMaKecPimP4A4PUiGgT4=; b=U/zWEBG2lfZgKNh3/iXXptfH+yxLeQE0hrJEzAXGFu3UpKo3nOMlxGVQczeNvnBFYU dRzBIDi8J9fiFxnUWARqu05F8smvDinLLrQW28Q+X67WyOt21N/Nl/0V4Ajff82hmkYg rRBIC+0fr9QSbyiDvHzCtzYoKmm9+/oZLCdSL4eNNSegXf7eu7SDLcEi9T+5nUtqWu4e HX+lLbvCPFetK6ceKwk1XprdFohGwB1u4lR7Z2JOGtqXbuALo7QMNRv8YaJtXPkLoF6r DyCtYnw3wfC27Zdc2HaGt+X4EP1bcEnswY6hKvMUtI/XJcfAoi4u/e0U2WjWwdSn5weH kzcw== ARC-Authentication-Results: i=1; mx.google.com; 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 n4si307186pgp.369.2018.02.14.04.21.21; Wed, 14 Feb 2018 04:21:36 -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; 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 S967623AbeBNMT1 (ORCPT + 99 others); Wed, 14 Feb 2018 07:19:27 -0500 Received: from mga11.intel.com ([192.55.52.93]:40281 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967577AbeBNMTO (ORCPT ); Wed, 14 Feb 2018 07:19:14 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Feb 2018 04:19:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,512,1511856000"; d="scan'208";a="18041301" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga008.jf.intel.com with ESMTP; 14 Feb 2018 04:19:11 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id 3A5DBC3B; Wed, 14 Feb 2018 14:19:10 +0200 (EET) Date: Wed, 14 Feb 2018 15:19:10 +0300 From: "Kirill A. Shutemov" To: Ingo Molnar 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: <20180214121910.yvnm7wcejpjux6eo@black.fi.intel.com> References: <20180214111656.88514-1-kirill.shutemov@linux.intel.com> <20180214111656.88514-10-kirill.shutemov@linux.intel.com> <20180214121049.z4cjsdwxaaq5gpv5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180214121049.z4cjsdwxaaq5gpv5@gmail.com> User-Agent: NeoMutt/20170714-126-deb55f (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Kirill A. Shutemov