Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp527608ybk; Fri, 15 May 2020 07:02:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx71ynQ8GqMiMi/Gi7gDALzdaNyfl1ghCjlG/0YoUiCg4OkitMPmdHooQcHWnC1bymVNou9 X-Received: by 2002:a05:6402:658:: with SMTP id u24mr3004937edx.213.1589551377293; Fri, 15 May 2020 07:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589551377; cv=none; d=google.com; s=arc-20160816; b=F2huBp6GvIehnXYolUIMJEhtqi4LLRdQTkTS376MCgeon05UDJZeR6VFYmAyTzCyt7 L9LayFOiuYKe0/owTseYT4GEYlC/wl7JAC/h4vMS7g11dklOPfYrpP/zmuXc66cLkw24 Gi+exTki75cr8GqEmiQDnqBiwX/AcdHSKOqmwrsYONBpiRWN7ReSE8Vk0PsVrW1+iKNE 665G/WeW51vTGvUL2yKwX+FC8EphKjGD9kV0Ded8uLHk7tzuTBrz8HuBWfIbwn5KDub8 et2snpV4kSvC93GCwpyvq4ZC3W7XaWh396hFjkNZd6Vrmgq3y6ZUtvijI54ixn+2rfNa OYpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=hb3MQKHFMobej/8gCU6NTxAR30TRg3VhNAWgwlqQNyg=; b=JFvcpC4llI339pEnBfROFXp/2O06OkcWA79Rm81y90TKkqyya6K0djbVvwhdpfbStK ljp+o0I31ddLdD3yaah8WhJBHnxMdFJfF3MC5wMTDSONN56WlkMmFK0kF5es4lbVjGtT vMava6n681bN0kPZQ0MsSd5xUugLL2n7AGe3/SdXMUawN953j5KmJ18fgcvb2MgIZp81 eKuugX2f0saU3CyPi9ysfNPBKvit8xoVjBuz6WJhMPWQ0tKZuw2GKQ3R56ZqBlQLFjr6 WBTj0gvw/nd5casvJc1ofkJnao6V9b82aHXhOEXtgyqP+/bOQj42RpqJGejy0XNbeEmz 9sXQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w14si1185106edl.600.2020.05.15.07.02.32; Fri, 15 May 2020 07:02:57 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726341AbgEOOA2 (ORCPT + 99 others); Fri, 15 May 2020 10:00:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726163AbgEOOA2 (ORCPT ); Fri, 15 May 2020 10:00:28 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F15CAC05BD09; Fri, 15 May 2020 07:00:27 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id 4181D379; Fri, 15 May 2020 16:00:25 +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 v3 0/7] mm: Get rid of vmalloc_sync_(un)mappings() Date: Fri, 15 May 2020 16:00:16 +0200 Message-Id: <20200515140023.25469-1-joro@8bytes.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, here is the updated version of this series with these changes: - Removed sync_current_stack_to_mm() too. - Added Acked-by's from Andy Lutomirski The previous versions can be found here: v1: https://lore.kernel.org/lkml/20200508144043.13893-1-joro@8bytes.org/ v2: https://lore.kernel.org/lkml/20200513152137.32426-1-joro@8bytes.org/ The cover-letter of v1 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 +- 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(-) -- 2.17.1