From patchwork Wed May 13 15:21:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Roedel X-Patchwork-Id: 11546705 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4133E913 for ; Wed, 13 May 2020 15:21:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F015C20794 for ; Wed, 13 May 2020 15:21:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F015C20794 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=8bytes.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BF58080007; Wed, 13 May 2020 11:21:43 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BC7B680006; Wed, 13 May 2020 11:21:43 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 987CB80006; Wed, 13 May 2020 11:21:43 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0044.hostedemail.com [216.40.44.44]) by kanga.kvack.org (Postfix) with ESMTP id 7FF4E9000F3 for ; Wed, 13 May 2020 11:21:43 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 4138B181AEF10 for ; Wed, 13 May 2020 15:21:43 +0000 (UTC) X-FDA: 76812060486.23.cork81_2c0d08876681c X-Spam-Summary: 2,0,0,bb72993cf63af699,d41d8cd98f00b204,joro@8bytes.org,,RULES_HIT:41:69:355:379:541:800:967:968:973:988:989:1260:1345:1437:1534:1542:1711:1730:1747:1777:1792:1801:1981:2194:2199:2393:2525:2559:2563:2682:2685:2859:2911:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3865:3866:3867:3871:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4184:4321:4361:4425:4605:5007:6261:6742:6755:7875:8660:9025:10004:11026:11473:11658:11914:12043:12114:12219:12297:12438:12555:12663:12679:12895:12986:13148:13161:13169:13229:13230:14096:14180:14181:14394:14721:21060:21080:21451:21627:21811:30012:30054:30070:30074,0,RBL:81.169.241.247:@8bytes.org:.lbl8.mailshell.net-62.2.6.100 64.100.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: cork81_2c0d08876681c X-Filterd-Recvd-Size: 3191 Received: from theia.8bytes.org (8bytes.org [81.169.241.247]) by imf40.hostedemail.com (Postfix) with ESMTP for ; Wed, 13 May 2020 15:21:42 +0000 (UTC) Received: by theia.8bytes.org (Postfix, from userid 1000) id B9A14694; Wed, 13 May 2020 17:21:40 +0200 (CEST) From: Joerg Roedel To: x86@kernel.org Cc: hpa@zytor.com, Dave Hansen , Andy Lutomirski , Peter Zijlstra , rjw@rjwysocki.net, Arnd Bergmann , Andrew Morton , Steven Rostedt , Vlastimil Babka , Michal Hocko , Matthew Wilcox , Joerg Roedel , joro@8bytes.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v2 0/7] mm: Get rid of vmalloc_sync_(un)mappings() Date: Wed, 13 May 2020 17:21:30 +0200 Message-Id: <20200513152137.32426-1-joro@8bytes.org> X-Mailer: git-send-email 2.17.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, here is the next post of this series with these changes to the first version: - Rebased to v5.7-rc5 - As a result of the rebase, also removed the vmalloc_sync_mappings() call from tracing code - Added a comment that we rely on the compiler optimizing calls to arch_syn_kernel_mappings() away when ARCH_PAGE_TABLE_SYNC_MASK is 0 The first version can be found here: https://lore.kernel.org/lkml/20200508144043.13893-1-joro@8bytes.org/ The cover letter of the first post also has more details on the motivation for this patch-set. Please review. Regards, Joerg 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 +- 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 +++++++----- 18 files changed, 204 insertions(+), 298 deletions(-) Acked-by: Andy Lutomirski