Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp540043ybk; Fri, 15 May 2020 07:19:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5WmC97ISyFl2NM3xg8lOKZ6zAJhQYjOMx33h08viBL3+hVuMhAzF0mpma+mn8t/+SWvAw X-Received: by 2002:aa7:d28a:: with SMTP id w10mr2928144edq.206.1589552391773; Fri, 15 May 2020 07:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589552391; cv=none; d=google.com; s=arc-20160816; b=gpv7dFXapaFbuqNjaPurShqj1toMYiDK3p1C34e9L43aCyDEqeSRFV1edMunS0MKgu 2y3IL6j/grTzRFzdZafSycweUq4LPpC+iTp0KWzZfVB4OJ0frKt43zhWyh4G1JyqgyZ3 eOy9DnnDyGBobonB263DOpVqJGiq0ppMpNXG1RYaZfBj/oYe+4wv5UrdYgFvMe3IBhG0 V+hvWRau6l4p1SjvBvEI76WloM2qmGk99PY4UF/Z/hWztaLLpf7JkX8fccak5GqceIBC SlxTupZUy3nivfThswX4mvYHlk8lK3cFUI2lGcDlMqlaMh8lnehgIVfgTZH7TKtvoj0D x/DA== 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=v1b+koX9aKkCpLP5KsbA1c0ns2JdCdDM2wQyt2wy9Nw=; b=KgWPUjNnABMFJmT4RgwOY7cobqdBkhy6vJI63V2GifmYon2Jx2QyWjGmdwUB/oPaz9 QoGY8uoWHBr4UKKCKZfRhW9In4e71h5vslxVvcTXEAgBeGBZr+bAqIcbBgS0rYT0teMR zHY6CxwJOwTOu4BW+SMDVjMHikovHavASe8vyXJKQ+KqMCF3mDIjonOIYgimNEBQyqQY Gj9Io4X8wHrd3fSQC2Un1beH1J+feGAuGwB+AK5PsabwBOxTmwutNmGMFChDCDic2RCK /E3hFMxsq3//oczLC6X82Rf/gxfNcgI3oYHa0OGIDh42Jtmut1VW8YFQWHFTyrBZgkTd 6sHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=UCgyVCrL; 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 oy4si56615ejb.433.2020.05.15.07.19.27; Fri, 15 May 2020 07:19:51 -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=merlin.20170209 header.b=UCgyVCrL; 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 S1726257AbgEOORt (ORCPT + 99 others); Fri, 15 May 2020 10:17:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726160AbgEOORr (ORCPT ); Fri, 15 May 2020 10:17:47 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53B39C061A0C; Fri, 15 May 2020 07:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=v1b+koX9aKkCpLP5KsbA1c0ns2JdCdDM2wQyt2wy9Nw=; b=UCgyVCrLlY2GcbgEUFlxjexZvP X13+Bvt5Sm10QJmbkpFC1yqWZ0sAV93SeLj9hIHCPrBJQhtGifoVVqLXkkVmVR3ggXKvb3yAGxjMl cJenei+aE7tY8vixRd8femgEShi1xghEBxzR5PnP0aNnzxrm/qBS7/C5tk8efpIKAP0/35Uem6tvP yKztd0CBKbKSMlO3SPXagJeQHb+dNEy0Xel0VZ27ymdl+WB7dLEyZVxy+E6Wyy2T+k2ep7iX4TiKz jO0oNVtpNCynaAzhjtqe67zFmBtDHJngqrSzyLpQ2iRu5OOVAVER+2AwqMGnR79ZDIu2rGKIcVQnz /7E2PLGg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZb92-0002JY-HL; Fri, 15 May 2020 14:17:00 +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 5CB40300455; Fri, 15 May 2020 16:16:57 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 47D1320267E67; Fri, 15 May 2020 16:16:57 +0200 (CEST) Date: Fri, 15 May 2020 16:16:57 +0200 From: Peter Zijlstra To: Joerg Roedel Cc: x86@kernel.org, hpa@zytor.com, Dave Hansen , Andy Lutomirski , rjw@rjwysocki.net, Arnd Bergmann , Andrew Morton , Steven Rostedt , Vlastimil Babka , Michal Hocko , Matthew Wilcox , Joerg Roedel , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v3 0/7] mm: Get rid of vmalloc_sync_(un)mappings() Message-ID: <20200515141657.GF2940@hirez.programming.kicks-ass.net> References: <20200515140023.25469-1-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515140023.25469-1-joro@8bytes.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 04:00:16PM +0200, Joerg Roedel wrote: > Joerg Roedel (7): > mm: Add functions to track page directory modifications > mm/vmalloc: Track which page-table levels were modified > mm/ioremap: Track which page-table levels were modified > x86/mm/64: Implement arch_sync_kernel_mappings() > x86/mm/32: Implement arch_sync_kernel_mappings() > mm: Remove vmalloc_sync_(un)mappings() > x86/mm: Remove vmalloc faulting > > arch/x86/include/asm/pgtable-2level_types.h | 2 + > arch/x86/include/asm/pgtable-3level_types.h | 2 + > arch/x86/include/asm/pgtable_64_types.h | 2 + > arch/x86/include/asm/switch_to.h | 23 --- > arch/x86/kernel/setup_percpu.c | 6 +- > arch/x86/mm/fault.c | 176 +------------------- > arch/x86/mm/init_64.c | 5 + > arch/x86/mm/pti.c | 8 +- > arch/x86/mm/tlb.c | 37 ---- > drivers/acpi/apei/ghes.c | 6 - > include/asm-generic/5level-fixup.h | 5 +- > include/asm-generic/pgtable.h | 23 +++ > include/linux/mm.h | 46 +++++ > include/linux/vmalloc.h | 18 +- > kernel/notifier.c | 1 - > kernel/trace/trace.c | 12 -- > lib/ioremap.c | 46 +++-- > mm/nommu.c | 12 -- > mm/vmalloc.c | 109 +++++++----- > 19 files changed, 204 insertions(+), 335 deletions(-) I'm thinking this improves the status-quo, so: Acked-by: Peter Zijlstra (Intel) Like Andy, I think I'd like x86_64 to pre-populate, but that can easily be done on top and should not hold this back.