Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp686753img; Fri, 22 Mar 2019 06:35:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwA4uC2SJmEemgDFjnVBIFJTUeznvCRs/WJV5zV4HQrAcg96ygTafVor05MT4vXlaOi2DfZ X-Received: by 2002:a62:58c7:: with SMTP id m190mr9255425pfb.4.1553261721314; Fri, 22 Mar 2019 06:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553261721; cv=none; d=google.com; s=arc-20160816; b=BW0xVPVAfnwEdYnbS6y3/+oer97RB+1tqAOwnoKRXfuU+j+AY75goRkFR7+S6mzzhZ BlBAtQSortpAVozltgzI8IA0SgNvamrU5/ZVmsEZ2xwnjyQHFL/olcPL7Ar2CBdIF9Xf fh8SFrDOrW288ezKgkgNTIHpw063eV4fmTxPSVeRL+evxKFY1RCHzHpcqlPSMSFBEZgR fm7+M7wYJQztXSR5y5kZ2dbzKXogJp5pJOeGJpz+gVm5DuCSEsJgJmqzyJu35a53q6d6 7gVtI66rzDD2p6aX33U9i8PE20zSwY54edTsJ4YuSuLSs+iBrT8Ae8h4kpfFbY9pSj1U 08sQ== 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; bh=fP5uIdbxx/wgS3q71bDfcKAiuve42W3kM1/G6wmggA8=; b=Q/Yes9J7MRJG+UnLp5Dq1H9iZIc8swgdHO2Db7LGqDhJofw1+vB8OzlRamn07jb/CU aXqEUFuMCpFXGYpMOzo8QMnE0MSZX/ERF8a4hlKShGirlkUHD4GfZRm7o9eIepYg6fe/ 8mlxgx+r2xorMJmIEYXFFoWaOUIN+IF43hf3o3JttGwK+DgR1CqUBucKtSSfITI4iC60 H4ChQ47XGozz6z3cwTBHVV7bzXCDlQVpr4StQnJnV88UMwEpPOsDtJHf4ZP/d5g5eoX7 WkoR7qzAy9KbJfv9F7TwqBmwSJPtbEv1q1qbIBbBKEI3ghSxB/TSbuT4We4LD10HR0L1 m+HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XqfiRmxw; 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 e130si6553667pfc.264.2019.03.22.06.35.03; Fri, 22 Mar 2019 06:35:21 -0700 (PDT) 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=@infradead.org header.s=bombadil.20170209 header.b=XqfiRmxw; 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 S1728743AbfCVNdc (ORCPT + 99 others); Fri, 22 Mar 2019 09:33:32 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:38834 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728162AbfCVNdc (ORCPT ); Fri, 22 Mar 2019 09:33:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fP5uIdbxx/wgS3q71bDfcKAiuve42W3kM1/G6wmggA8=; b=XqfiRmxwMYdGLn4GdwrpfcXUK NHISslbGIA/820atL2I2BG7G3enYubtqtgjozWVmIxe45Ss1JYi8dkfJct/bbla7kcvNBOt1cjccJ 5UhdXeGu9b1LdhRi/nshlEOaAjmaTqmamQ4fpvV+Nyu8KWwMwFhAOHFTejAAcOO3BFGDsgkGsqLkp WkRBavFvJgVOME0RYTWSB2Yp9RPPrBAIJbUYgv6NNMlnoInjvimXiml+HbitZ7s3BDnmVrlTvaxmm cYW8gNcM2g4rzPro3XxODMCTDJMj547TidhY/iWSTxDQUx3FjDIteSGDH722iBYHhvgU1JQ2rmFg/ CzTRr3J+w==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7KIc-0002q8-QA; Fri, 22 Mar 2019 13:33:30 +0000 Date: Fri, 22 Mar 2019 06:33:30 -0700 From: Christoph Hellwig To: Anup Patel Cc: Palmer Dabbelt , Albert Ou , "linux-kernel@vger.kernel.org" , Mike Rapoport , Christoph Hellwig , Atish Patra , Paul Walmsley , "linux-riscv@lists.infradead.org" Subject: Re: [PATCH v2 4/5] RISC-V: Remove redundant trampoline page table Message-ID: <20190322133330.GB32464@infradead.org> References: <20190321094710.16552-1-anup.patel@wdc.com> <20190321094710.16552-5-anup.patel@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190321094710.16552-5-anup.patel@wdc.com> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > - /* Compute satp for kernel page tables, but don't load it yet */ > + /* Compute satp for kernel page directory, but don't load it yet */ > /* > - * Load trampoline page directory, which will cause us to trap to > + * Load kernel page directory, which will cause us to trap to > * stvec if VA != PA, or simply fall through if VA == PA > */ If we want to nitpick comments I think this should take about the page table root or something like that. Otherwise the idea looks good, but I really think we should do this before all the changes to the setup_vm code.