From patchwork Sat Nov 3 04:00:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 10666497 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 6871E175A for ; Sat, 3 Nov 2018 04:01:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 423232B3D2 for ; Sat, 3 Nov 2018 04:01:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34C4C2B3D8; Sat, 3 Nov 2018 04:01:03 +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 BD6B62B3D2 for ; Sat, 3 Nov 2018 04:01:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 392896B000C; Sat, 3 Nov 2018 00:00:58 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 36CA16B000D; Sat, 3 Nov 2018 00:00:58 -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 235986B000E; Sat, 3 Nov 2018 00:00:58 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by kanga.kvack.org (Postfix) with ESMTP id D6C606B000C for ; Sat, 3 Nov 2018 00:00:57 -0400 (EDT) Received: by mail-pg1-f198.google.com with SMTP id v72so3510760pgb.10 for ; Fri, 02 Nov 2018 21:00:57 -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=5HkIf26O8EXe1py4I/eqZ1OjBmokbTLMF6ur7yoT6bA=; b=S3pEKg7ZRadSjgRvMOMPPcDL4UPifj3vMGfqv5jFq+wqKd0Dn9HegGb6kd8r2IrHyp iQdQciD0x1vUIsdi3JDjrdaYUm2SNbwOqCQ7jT+xJBYMbzYehgeTYEHCMkTRvk8FpzQ9 JJigBaD0pJaYGTRzqPe2P7ct8LEaNMXKcetFGbW3th6JQFnkiIVNIOEkiwZFutqnDYs+ icchOrUcYRgNdRm6Lv5o+CxEeSo7RKg9T1K8KvPCc9D4n8IavqcwC4LgjChooTkeUZu6 pTtl6/e3F6yW/mhsv2EUw1jcJO5hG9RdhkXwDYXgjJ8Wx2uV2muh/iTVm8kbi9fvGS0m Cr3g== X-Gm-Message-State: AGRZ1gKhSGI6E+qGSAjDiuaP4XgI7lkFQq8RePaQRf0zn1alezi1d9OZ suUCCYnuSoVUfXM3xD7wKxvJTMXWaCuUNXm/lXcqvNjJoXwwukOMcjyz7TkpdjwD7W30AZg1Dlo 6Cl6M4lKsXvSbGOXewlhIhhxShHJicMyf6dajUODJpIkzDRlvHmaDUrMdDJxqpcuOK9brv+A8fp RxmzMWU+180aruSIuCbpyrVrSCjh4my3LgqGtgZ6dxAa/SqMHZOOUOY/4Y1nKIYcxx2rrMVL1+q wHknNfQOjQisKKdoJxdLVVW1xi2+3FGWiuc7ShHOkcZCqwlBrpZ3C1IOEdqb3oIAgS8vMuF2Qpt KUdx1dKTo0gmPeHXhEsMl+hvsQ8zuqj9B92r0XbDsjC37i6Grize96f02s2pO+Q4J26sHwIscjU z X-Received: by 2002:a63:6483:: with SMTP id y125mr12890922pgb.91.1541217657548; Fri, 02 Nov 2018 21:00:57 -0700 (PDT) X-Received: by 2002:a63:6483:: with SMTP id y125mr12890886pgb.91.1541217656805; Fri, 02 Nov 2018 21:00:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541217656; cv=none; d=google.com; s=arc-20160816; b=o934N6CZWdYmPMhI0++o9BA3PFqNvavUZnopXH34ujOB+UnqIeaNQ4RpEmWJT7QVC8 JF36TAbJlriVpb6/zbYOX2QxJWJrB+XIUdSc+dj2op9T0EHVntt906X72ILKBk2VB/Mq dJHeAQwfSzbem7XaO3A1u8lhZ4oC/YJjH7yxqZyxFYQ2ZFZtjmES3gC3y04pqvF5cKbb ds4cJFLfPzJeQMoObqGcvXCrjKQRbfOU8Mi5pYh2UVgRGL+c+krTOu1kB/wd379syrz2 rYsgBBZVsKJVwr1LwR1cypcoTeeOaRnnjcchshFr6xEpRlFLnhQdCV+CpJxAT/CPtrao 74wA== 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=5HkIf26O8EXe1py4I/eqZ1OjBmokbTLMF6ur7yoT6bA=; b=feHlURWYQAL0QoodQVyPurltg8WQmky0w8jjaUDnMTD/WTBIoS9TKcolUY75uQGd3f llDVk3H8eetEeLePl5p1/MuXx3unkBvOS7HxiegIYZPDp9vCDo0464MJH4kEjqMk905I i30oNQPcmn6NNDyLXK527uXCHffq4rz/d7fVutVfredUa7XuksVq/D7erKR1dJ4B2qN2 /8uG4GJ1isAskWvoQLq0cTyuQI4lU/fDNBWvPGpsH3f3wAHe/8+Sfkj9zl6fnvB26WbM eVtHMV87wkSMYC9AtznG2EZ1aoNPEwDvuEQ7jDF7uGkt73Q/YoEXA1wdODDiBjbZUShC o2jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=jrGY5nHX; 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 x8-v6sor7230877pfk.32.2018.11.02.21.00.56 for (Google Transport Security); Fri, 02 Nov 2018 21:00:56 -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=jrGY5nHX; 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=5HkIf26O8EXe1py4I/eqZ1OjBmokbTLMF6ur7yoT6bA=; b=jrGY5nHXhhy3bkMSfMNLEHiciHloHxFKJ4aKR9IYI3sMm4SLNqyCuZkxA1Ou2fv5Eb LcgIqDLqRcuJQYRuuB6UAcFJ7ufl/3CYO1JXJIb4o1fmCxpYb6V2z23vry7jhOX1HOwS BcJfpo/bXQrK4mzzOg5dJYw8ZFSef/P3g+8jc= X-Google-Smtp-Source: AJdET5fu2OzYfiTyZl33qiii7V2shb8ruxRKcR+KaDeH4D4fynaZZ4zUx7EMsJk+RfMx/9zdh6SdFA== X-Received: by 2002:a62:6f43:: with SMTP id k64-v6mr13745084pfc.87.1541217656208; Fri, 02 Nov 2018 21:00:56 -0700 (PDT) Received: from joelaf.mtv.corp.google.com ([2620:0:1000:1601:3aef:314f:b9ea:889f]) by smtp.gmail.com with ESMTPSA id x36-v6sm35836232pgl.43.2018.11.02.21.00.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Nov 2018 21:00:55 -0700 (PDT) From: Joel Fernandes X-Google-Original-From: Joel Fernandes To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, "Joel Fernandes (Google)" , "Kirill A . Shutemov" , 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, 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 , Michal Hocko , 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 -next 3/3] mm: select HAVE_MOVE_PMD in x86 for faster mremap Date: Fri, 2 Nov 2018 21:00:41 -0700 Message-Id: <20181103040041.7085-4-joelaf@google.com> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog In-Reply-To: <20181103040041.7085-1-joelaf@google.com> References: <20181103040041.7085-1-joelaf@google.com> 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 From: "Joel Fernandes (Google)" 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. Suggested-by: Kirill A. Shutemov Acked-by: Kirill A. Shutemov 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 ba7e3464ee92..48aef01a0bd1 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -173,6 +173,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