From patchwork Sat Oct 13 01:32:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 10639831 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 916A0157A for ; Sat, 13 Oct 2018 01:32:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72C5D2B903 for ; Sat, 13 Oct 2018 01:32:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64FF22B906; Sat, 13 Oct 2018 01:32:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 069762B903 for ; Sat, 13 Oct 2018 01:32:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 99B4C6B0269; Fri, 12 Oct 2018 21:32:30 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 94E0A6B026A; Fri, 12 Oct 2018 21:32:30 -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 79E416B026B; Fri, 12 Oct 2018 21:32:30 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by kanga.kvack.org (Postfix) with ESMTP id 2B15E6B0269 for ; Fri, 12 Oct 2018 21:32:30 -0400 (EDT) Received: by mail-pf1-f198.google.com with SMTP id z12-v6so13590535pfl.17 for ; Fri, 12 Oct 2018 18:32:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=jtAK3pAlFMeOO6SUm8Lh3Bmb29tPAciRzUtn881iM5M=; b=Whaef8FSRG1/ujmImP2NukuDrkFNYDYrDtxUNwzYdObEY98ZOvaPx+PBDsauW/cMwu 8qMd/legEB6tjHFuifjf9OBvm7nFExMh4p9SxDdan2jynicnPuOs9j/JUEdudCRlhPSr 9QC9CGCDIM6P9+crh7isczDE89H1MuGLRAeMUUZS+TS3ktCyNg1tGIaz8ZJUrB0/N742 ojNflkb94pY1hCLpwX+L0hSYUqi10witw582siXkTMqIkmnFeE3Re7Lif4MOh3//8E9Q f2xBYHc9YG84esGm4wOJTizVDY8UFkTTOJsRPZ8rH2jHYFCr6HYbHbLFNHSXBhDwExrr O2zw== X-Gm-Message-State: ABuFfoiUwU4wfGsjmRhqCutkqvRRlHVzjhSAl+gYfODRqFyYaXijJJAx L0mMH/Mv5h2nXqPAEc4FhraCDGJ+E/+2iblyK8+kQXj7HsSO7ijlUhftMD5mlXhAluKYZ7GHP2S 73N0bHZLwURaCAOmHgWyCK72IipJrq0g/NDZ7SaS0dOsGtmgWzlyV4MiiOcwaEqGb2u1Y+6Bqvi 27WVTmVMKvc2npVM/NaicSWJlSYxO3uCXJw2FAxhVvdysliFn8i/xwAmEMOj4A02OJ8v/tnphTj 0fKCBglpS7NEkSCeEwoWYWcPrSU3eCuloh/DNZS51+3Nsh3pb3sTbmM3YDGp1Wry5YlB3BM50Kc 5c99VFporlqFvVFwFeXxw7La99CzTwCgrl+R8BEA4McL0C9OMPW7GcE2tV9hb4ocWRhVEtyXG8U + X-Received: by 2002:a17:902:8f93:: with SMTP id z19-v6mr7914158plo.328.1539394349861; Fri, 12 Oct 2018 18:32:29 -0700 (PDT) X-Received: by 2002:a17:902:8f93:: with SMTP id z19-v6mr7914117plo.328.1539394349165; Fri, 12 Oct 2018 18:32:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539394349; cv=none; d=google.com; s=arc-20160816; b=jXYcboH7XXtwmVvDNRQrCPDfqN63OD6XA5f7wg5r3FkPE1UJ93581adyXRj+SkaDQs Z/hTy6DF/txWUGXSkdOIsvVUrPGvNCnKFLbv2MWdJuuHlPqBn1JLfsD4Chz9YGFY2JIq xEENKOJ2vqOSGiAtr0UstG9YZzjn+XCdgZ5eo+AffVySIH1vZO+C97Wn+VY7ZhqfTpn5 IQUisZ6Z+c/gtUbVWiuhEebSD9VxAHjeGOCi8f6MHYp8825LR7EyGmssAXaIH934P9LX tFBrFGW6bxNFo1ESKTpjk5mR6N+sqhlXgpqoe52hhbIjEoLWXWTgKQlT1OKPMSefkMX4 X8eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=jtAK3pAlFMeOO6SUm8Lh3Bmb29tPAciRzUtn881iM5M=; b=xf+XYWmrGR6ut/c7mikF0OmMv5I2YP40QZ/GO4QcJZu1zfym2U4oeYYtDtYrYx1YLT UzUWsAzDiacxeD8RQ2xqs8SlR86SpnmmHxbmDy9hSmGQrvxrk2tkuuKVWE0tKlAGLUb+ OS2KrUiwJhpH0lfl++U4qefwRKfUA7e6X6O2ajYKTQBn5f217Rgo23FqQt3XSDOc1NqK ID/fq3S6Px8+7Ya6cvxWpUcXPReHs/eSY4Sr5DspDOk84/45OTYtuM7IbTMl17YZmvcc BEahDwWZhQ/Me5Mwen+qCIo/hCIlZnDUyamB39fIHVk3oPCIBqa+Ula7Lovo3cJTM2G6 bAfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=hu1RRoD4; spf=pass (google.com: domain of joel@joelfernandes.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=joel@joelfernandes.org Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id o12-v6sor2371368plg.19.2018.10.12.18.32.28 for (Google Transport Security); Fri, 12 Oct 2018 18:32:29 -0700 (PDT) Received-SPF: pass (google.com: domain of joel@joelfernandes.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=hu1RRoD4; spf=pass (google.com: domain of joel@joelfernandes.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=joel@joelfernandes.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jtAK3pAlFMeOO6SUm8Lh3Bmb29tPAciRzUtn881iM5M=; b=hu1RRoD4zGFkh1NvswXMY0Mcf7RReZIxK6TbDCgMDMi1xCXvjQWNtmb8jA6UW1Q5ZI bybcFeJfratqjTeqEb7mRWAGReU9tL9VCuSkWsUqyCZbL3y+XtXFIKgHbMuC6INYU+VH z4FmPqYFb3J2yvvfenwn9pAR6sobi8QuQFyFE= X-Google-Smtp-Source: ACcGV60cRgU0XyfJPBpItPjBh+EP7iRiHLZbhDbgbD69TJC4FgrTPRZLx9S2q81RSPgQ8LHOmiT4Xw== X-Received: by 2002:a17:902:8687:: with SMTP id g7-v6mr8297604plo.30.1539394348522; Fri, 12 Oct 2018 18:32:28 -0700 (PDT) Received: from joelaf.mtv.corp.google.com ([2620:0:1000:1601:3aef:314f:b9ea:889f]) by smtp.gmail.com with ESMTPSA id q7-v6sm6507828pfd.164.2018.10.12.18.32.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Oct 2018 18:32:27 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, "Joel Fernandes (Google)" , akpm@linux-foundation.org, Andrey Ryabinin , Andy Lutomirski , anton.ivanov@kot-begemot.co.uk, Borislav Petkov , Catalin Marinas , Chris Zankel , dancol@google.com, Dave Hansen , "David S. Miller" , elfring@users.sourceforge.net, Fenghua Yu , Geert Uytterhoeven , Guan Xuetao , Helge Deller , hughd@google.com, Ingo Molnar , "James E.J. Bottomley" , Jeff Dike , Jonas Bonn , Julia Lawall , kasan-dev@googlegroups.com, "Kirill A. Shutemov" , kvmarm@lists.cs.columbia.edu, Ley Foon Tan , linux-alpha@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@linux-mips.org, linux-mm@kvack.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-um@lists.infradead.org, linux-xtensa@linux-xtensa.org, lokeshgidra@google.com, Max Filippov , mhocko@kernel.org, minchan@kernel.org, nios2-dev@lists.rocketboards.org, pantin@google.com, Peter Zijlstra , Richard Weinberger , Rich Felker , Sam Creasey , sparclinux@vger.kernel.org, Stafford Horne , Stefan Kristiansson , Thomas Gleixner , Tony Luck , Will Deacon , x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)), Yoshinori Sato Subject: [PATCH 4/4] x86: select HAVE_MOVE_PMD for faster mremap (v1) Date: Fri, 12 Oct 2018 18:32:00 -0700 Message-Id: <20181013013200.206928-5-joel@joelfernandes.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog In-Reply-To: <20181013013200.206928-1-joel@joelfernandes.org> References: <20181013013200.206928-1-joel@joelfernandes.org> MIME-Version: 1.0 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: X-Virus-Scanned: ClamAV using ClamSMTP Moving page-tables at the PMD-level on x86 is known to be safe. Enable this option so that we can do fast mremap when possible. Signed-off-by: Joel Fernandes (Google) --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 1a0be022f91d..01c02a9d7825 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -171,6 +171,7 @@ config X86 select HAVE_MEMBLOCK_NODE_MAP select HAVE_MIXED_BREAKPOINTS_REGS select HAVE_MOD_ARCH_SPECIFIC + select HAVE_MOVE_PMD select HAVE_NMI select HAVE_OPROFILE select HAVE_OPTPROBES