Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp526455ybt; Fri, 26 Jun 2020 05:28:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHqYxlSg85xp5VB0R9qGCmhzWK7soRK46A6mlNl7xK0vKsX7dGVTEroRr00z4CKbzQvU8R X-Received: by 2002:a17:906:5799:: with SMTP id k25mr2433342ejq.540.1593174518902; Fri, 26 Jun 2020 05:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593174518; cv=none; d=google.com; s=arc-20160816; b=A/kEPXGki/kU4fw8pbAOhLuanuhQoYEU1gvQvjcrjY3d/97bSjpWTjCP54AIBpAxGn cMEIArDYtpkHom4cOe7ZfH8ecliyID9LnZTCOl+3tX4MB/+7OYLaK6M9fq9O/bdSiac0 +Evkza9e1U58+4EAqaYmJ6/xTxtYaSckNiE8NUugZ8dbuA6H9pASp0h9gI61n8/Px66d N4SAh9QwSW/2l6O8WAwBOSCfrOqpo9035jjsF6ikpwq0YejAYAs2rFeJR1Ewkdo/Fcpc 9izAmZwyPyFRmLS2k3l1kd+fSrdyAipbK/2q40WlE6OsJe8oHVlIEmUWRInelkbbhyUL l7SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9F5sFgP9Bn8cXiYViW8jd6fQuEsP0WlFlPFHdqj9h4w=; b=twWHxBckgnxn6CP+NbfsE3lQ4ngPHXnssAX5Nv2qb0X5RTKVYescyH7EVjx4IaFMqy zPutCS9ni+x0h9+0qa6I2lD4l7CrSiB2xEGqu4XwyU5ZHQujMYm54Nz+ocsefq+CyHu9 LARKDVCEjXgxGSKRUvokFbOO4bNSc1faTHvFdPg0SO895HNYzzOzMZEqP0KxlrVa5cD1 eU7dX/txyLwDAQLB8oULB9CVEVZ8VIi2WMtFMerV2OjlXg2Es2kv+Z22Ts351r2rIevk M5OdD0Ta4zn5jW1L7vkRebgb3JyJuYpPlGiUAGzsvx+mXCGX9iTQbcJpOfPdu65SXG/3 APdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=tIuW0RUD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si9099707edn.594.2020.06.26.05.28.15; Fri, 26 Jun 2020 05:28:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=tIuW0RUD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728707AbgFZLcr (ORCPT + 99 others); Fri, 26 Jun 2020 07:32:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728701AbgFZLcr (ORCPT ); Fri, 26 Jun 2020 07:32:47 -0400 Received: from casper.infradead.org (unknown [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 368D8C08C5C1 for ; Fri, 26 Jun 2020 04:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=9F5sFgP9Bn8cXiYViW8jd6fQuEsP0WlFlPFHdqj9h4w=; b=tIuW0RUDKUL0tHC3tOR/EvjGtb EvACl84kLjv98Gf3yBaaYcFik7AgLAnDjSC8JECnwfVhnsyoY1jWNEC45cBf08vvItZgktkTmk1qH aamaQMyYgdtU7VgxtH/AU6DTD0ALcgQnMSlmnFTspApQsFOKJUUcldcnT5s9Kkrs3XEvt4QJzKXFM z8FmeM549x+GwIrmP6S3hljAC8FvkxacFXNryIH4qPTXL/xSgWgfhJ9hIm7IZ9lvG55ECzdtzGNJe XFh+uhZ9mP1unuTJOMEEVIR4bPJV+uSDsC2GFLkwC4sKR0HoWhKPewoERWd6h+nbmASoB+qri9Co/ W0DgtV6w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jomad-00085b-Oh; Fri, 26 Jun 2020 11:32:17 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4A6F0301DFC; Fri, 26 Jun 2020 13:32:15 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3C13729C4228A; Fri, 26 Jun 2020 13:32:15 +0200 (CEST) Date: Fri, 26 Jun 2020 13:32:15 +0200 From: Peter Zijlstra To: Joerg Roedel Cc: Joerg Roedel , x86@kernel.org, hpa@zytor.com, Dave Hansen , Andy Lutomirski , Andrew Morton , Steven Rostedt , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] x86/mm: Pre-allocate p4d/pud pages for vmalloc area Message-ID: <20200626113215.GG117543@hirez.programming.kicks-ass.net> References: <20200626093450.27741-1-joro@8bytes.org> <20200626110731.GC4817@hirez.programming.kicks-ass.net> <20200626111711.GO14101@suse.de> <20200626113101.GG4817@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200626113101.GG4817@hirez.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 26, 2020 at 01:31:01PM +0200, Peter Zijlstra wrote: > On Fri, Jun 26, 2020 at 01:17:11PM +0200, Joerg Roedel wrote: > > On Fri, Jun 26, 2020 at 01:07:31PM +0200, Peter Zijlstra wrote: > > > Can't we now remove arch_sync_kernel_mappings() from this same file? > > > > Only if we panic on allocation failure. > > I think we do that in plenty places already, so sure ;-) That is, this is boot time only, right? clone() would return -ENOMEM, as it's part of the normal page-table copy.