Received: by 10.223.185.116 with SMTP id b49csp601959wrg; Wed, 14 Feb 2018 04:11:56 -0800 (PST) X-Google-Smtp-Source: AH8x224Adwky0T/e4bWGgMPRxAfi8knDCwy793ruUFD7ldoGp9mI3snH6597v3e64g1StfCpnXdy X-Received: by 10.98.73.70 with SMTP id w67mr4574027pfa.61.1518610316418; Wed, 14 Feb 2018 04:11:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518610316; cv=none; d=google.com; s=arc-20160816; b=KeNmATNgmcIuyyG+aL6rAObdUqurtOyamOBV0AwWnXh0xOcREL524mVCiJrbpE1VA+ cyTYqqAiiAYdCzYd5CGUFM87BpfrkwrOL4hpVpo9Vs32iiDJmP1FJFqCyfQVSQWCRS6Y vsyX3rhrdUubqEHLhioK8+ahSWALRZWEESlmDA3UCPoe4WwTiNh5iv2neR/kNuYfHxxa FdM9hM+xrVdxDXiyjR9JqxgTJnkq5EmfDwTq/EsKPJ8wunbii9WpDbP2e1bhtCPquxuk jA8N5vvP11pV653xNK6dp6ndfVkz/f9TOMLFNmKewO1XU+I3wOV3mMYXsx4KWTc4FdyC NJIA== 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=pjga+zouRbT/87/iQS6tSd3hMETHGJPm5crXG8nNQN0=; b=ZCvF/vRZEd/JQt75uMs6XLxS5glYBC6J59J6DtVhzhxEBuJhD8muU0l9w+xFyfP90i /cIWCJP5uBu2DJ/ZKXpssFggpbsLsTMRZqNNO8Uz4TbqFRstiYMTBUMxlr4baauKXF5T qqIsl9XV3MRxVzJjH551w1JrnclJBgEb30c3KV+YooukhleXhKEyyoc/A174D5Mk8zk2 9W3pLOjZFuq4joqMcZogaQtm+y4aZlWx9GrsxJEeoe2vDkKj8rt7jyLVqXjlCK25NuLp 9Ygo9EUI/v3PZEggYbhGH+VaqWnAn4oAi1bC93ivI7vOTJp+P2ltBB4sa+S7HLEjkyzV 0v4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KbeCf+ZX; 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 w4-v6si8996488plp.253.2018.02.14.04.11.41; Wed, 14 Feb 2018 04:11:56 -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=KbeCf+ZX; 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 S1754704AbeBNMKy (ORCPT + 99 others); Wed, 14 Feb 2018 07:10:54 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38130 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752243AbeBNMKx (ORCPT ); Wed, 14 Feb 2018 07:10:53 -0500 Received: by mail-wm0-f67.google.com with SMTP id 141so21510145wme.3 for ; Wed, 14 Feb 2018 04:10:53 -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=pjga+zouRbT/87/iQS6tSd3hMETHGJPm5crXG8nNQN0=; b=KbeCf+ZXFPmKpymC3e8/58lsXOcs3L7KNvJE9/LkU3vgxNRsKzlWF9ho9IamNhAx++ jPVVFG7Sq2Np/e3lzmHIUbLr31VvbW9RSPgVapqe2FCa6BJ4qropBAtwmm3d041Fa3vr VVszfEYfv0A/lt1Ro8kGz5SzgDthgu8qt+YTEjh1t1jVwM5cUVnAOhDo56J9hkEj7Nhc DwLl3Zlk7ABYZ3is6Ucv7lcP48hsspNhj/xll1V+i5fHzf5C+e7qi/BIYv/ommRTDxJp yaf7F9ejjZRwK3bMlAyyJp8pbMaAPUqM7Rpevt9/XZvHWCR6pYi1fwj18oCiDEvMZnVB Th3g== 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=pjga+zouRbT/87/iQS6tSd3hMETHGJPm5crXG8nNQN0=; b=hlIE45t57d4J8FQzVtMnRg2P6J7qmviKgvf6qZsRdBSfWGoy4DDHtX1eWVb+Qutx5v VaxmY8EgcKayqAsOy7TbZzQ0qab13MXoB06mRJkN6NC3tMz33dBSspOUSe2pS77zWmZb RIPxnY3yozZJUURYw2j2PELTU/V/B7SQ9i3Pmmh/uhiZE5KqfxLdUTn458Jtk6D3F7pn at/+jvtsQenszZek6dFskVwiGAdmqpUew9vGZ2kcofTfald+9+tGHuCFowJ+oRMfolVV gXrGORDsLhI8dS4c9PmxECJ+cEQxkbIpCpf83ThT0SoFxe+3cAm+/H2kSGHc8jjMw/TS 1e3g== X-Gm-Message-State: APf1xPA/iNmns89sGH5hmL719yclOS9BESIyARxdFAT9j3w7NJ5AvTe2 8ONa8bpbTPExH0FaRQgfqcA= X-Received: by 10.28.24.193 with SMTP id 184mr3802739wmy.144.1518610252406; Wed, 14 Feb 2018 04:10:52 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id v23sm12047158wmv.8.2018.02.14.04.10.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Feb 2018 04:10:51 -0800 (PST) Date: Wed, 14 Feb 2018 13:10:49 +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: <20180214121049.z4cjsdwxaaq5gpv5@gmail.com> References: <20180214111656.88514-1-kirill.shutemov@linux.intel.com> <20180214111656.88514-10-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180214111656.88514-10-kirill.shutemov@linux.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: > 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? Thanks, Ingo