From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58FAEC5DF62 for ; Wed, 6 Nov 2019 09:13:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 23F82217F4 for ; Wed, 6 Nov 2019 09:13:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mW5oMhJE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 23F82217F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7LxiE7nTrheIZ3bwlMvPGeXMjasIbB9N1y0OM4PTQoI=; b=mW5oMhJEM+vmdj 0FKBZAP9iJmv6V/CvpZcsa54pZyVBfqeP3pZECBMi++45Rul9Rs/oqLR59hL/5gf0vKfw3a0/B9+A dphVhT2Ejhqvk6r6nSMNinDfbnxEwT3tanMcSYjDlhon+8WfeJYFpCGBUV0V0RPE6DbsVoT6pRVgD mm4Yrb7O+6U1s15xDfQ+xV5YM+IHcRkv3qMl5Hk78IXb6pUNV66l4Suvy3P/u27J9LpFUSucBE3zD mrJVhpXumqbjPcZY/MpBLKlsUjqr9nSSm/JIjRSH9vtI72ObV7glsm2Ew3BTPVcyNX0A4fyGQdD3+ uGUeeQYPtp21YT5A3tcw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSHNT-0007eq-Kl; Wed, 06 Nov 2019 09:13:23 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSHNQ-0007dw-So for linux-arm-kernel@lists.infradead.org; Wed, 06 Nov 2019 09:13:22 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3FA9030E; Wed, 6 Nov 2019 01:13:19 -0800 (PST) Received: from arrakis.emea.arm.com (unknown [10.1.197.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A25B93F71A; Wed, 6 Nov 2019 01:13:18 -0800 (PST) Date: Wed, 6 Nov 2019 09:13:16 +0000 From: Catalin Marinas To: Mark Brown Subject: Re: [PATCH v5 4/4] arm64: Use a variable to store non-global mappings decision Message-ID: <20191106091316.GD21133@arrakis.emea.arm.com> References: <20191104191524.10596-1-broonie@kernel.org> <20191104191524.10596-5-broonie@kernel.org> <20191105173005.GE22987@arrakis.emea.arm.com> <20191105174445.GD4500@sirena.co.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191105174445.GD4500@sirena.co.uk> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191106_011320_978764_AF763F7C X-CRM114-Status: GOOD ( 12.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Nov 05, 2019 at 05:44:45PM +0000, Mark Brown wrote: > On Tue, Nov 05, 2019 at 05:30:06PM +0000, Catalin Marinas wrote: > > On Mon, Nov 04, 2019 at 07:15:24PM +0000, Mark Brown wrote: > > > > + /* > > > + * If know now we are going to need KPTI then use non-global > > > + * mappings from the start, avoiding the cost of rewriting > > > + * everything later. > > > + */ > > > + arm64_use_ng_mappings = kaslr_requires_kpti(); > > > } > > > I think we need this even earlier in paging_init() before we start > > creating the kernel mappings. > > OK, I'll move it. I didn't see any global mappings getting created with > the current code but better safe than sorry. I gave these patches a try under kvm/qemu on TX2 and most of the linear map turns out global in ptdump. I'll try your other series. -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel