From patchwork Mon Mar 25 14:40:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jerome Glisse X-Patchwork-Id: 10869401 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 23A911390 for ; Mon, 25 Mar 2019 14:40:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B5B329474 for ; Mon, 25 Mar 2019 14:40:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0993629482; Mon, 25 Mar 2019 14:40:21 +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=-2.9 required=2.0 tests=BAYES_00,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 9263529476 for ; Mon, 25 Mar 2019 14:40:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 563586B0006; Mon, 25 Mar 2019 10:40:17 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 4E97B6B000A; Mon, 25 Mar 2019 10:40:17 -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 388A36B000C; Mon, 25 Mar 2019 10:40:17 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by kanga.kvack.org (Postfix) with ESMTP id 0D6546B0006 for ; Mon, 25 Mar 2019 10:40:17 -0400 (EDT) Received: by mail-qt1-f200.google.com with SMTP id 35so10300950qty.12 for ; Mon, 25 Mar 2019 07:40:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=pWcLW/bNcbSzZsR0N5LB1nlWz2nt3SFlayKquuhRY14=; b=fqu4kQVHJPvnl6i6aa6q3P2q2mRGRVUfdjCmYP2bg1BU1h+Bz0BGbiQnmTUyXNMuir 2QKjyDO2feEVdRafFFwNOAywtzMuj42pnMU+Y/TR6AWBQXLIiVkr20vlfYby9IBASsWE KixeeBhICwNwYTJS2o9/ZYYvQ2cAPowgpF6xa2qv+QUJu+pWCK7B8QQWNIwB1/q5MAAs 1YFEsSsJNo9OqtWKuPTrhhmEIDnUXeWMaVkDswmbtlk0QMdIs8e8GBp+1QpAxqHFLy0a bi07lYCXuorBLhLBtAVAzsG9nRdHWtyE3FVhmwORqCoKvAkZJnMNl7JkcI7d3wYkSrv/ /5rw== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=jglisse@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: APjAAAWJt3iRKAtqGpHbTcdths35+Zpx7/dBhZv7lB7yWYVA5EnUWIAE XuO4/6YWJSzXE9FZR9PkLKP0CuOfwvtNziHf/dBT16K43GzLH7H0tG1YWsXyYpGgkxv69BPCQIO dXywFZk9CCD1oH37Dbxo/a69tYiVAE28WUhzGPu7hh0SdjTmktZLBwq5gq3FBEgd/0w== X-Received: by 2002:a0c:b15c:: with SMTP id r28mr8177990qvc.122.1553524816793; Mon, 25 Mar 2019 07:40:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqws1UwuD3D8U55ZmP2S0fOF0ngILZnAwya47CZMNvIJ7e4vJ1e8I5U2bqZUIzng1f8VBIzx X-Received: by 2002:a0c:b15c:: with SMTP id r28mr8177939qvc.122.1553524816067; Mon, 25 Mar 2019 07:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553524816; cv=none; d=google.com; s=arc-20160816; b=hDMbGq3rxDgi0oMMxYjzEa/tfIct094P1qEIzbn4jTfitc5tyKAFEoIUpLA5uTRKCJ QN9FZQKFmoH3zO08S//yFVmiLeTN9vMyMZrx27cD6b8oo6iLvelX2jSciMNOA74BT3kK Zf2ZkQ8n/HnhMOtpbUybFjEOkhfi5rQ5K3fMym8Z6198AXPnALxXTqiMcgD/PAZXexkZ shx3WaVSiueK1fpZhL8Wx1i2uC8QhzkCtGRitLcQ7so4wwL/YNaxoPuE2nq4ExqQ0pBb JGOja/fz0772x2atxrCoIlP93nB40aAhIXrGpRt+RA1GWf+OdM9lOOsE7o1075rA6sON oZLA== 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; bh=pWcLW/bNcbSzZsR0N5LB1nlWz2nt3SFlayKquuhRY14=; b=hUiC6TPeSU/wg34oHgGuekrV61+NmY89y5hjPL0bM25+gm5/Z3fUesMy9Yzf/45asH oICMi1vERRJOFOJV/qlFipXhRDM/bQdK52yvD55BWI52TlN2kMD6Qo5fPOpsisdGt85y PbdAiLmwI5Rk8rXW9Fq/2GfXT4nUrPpOaOQYmXjMdvC38My0xk9d/KFJdVtLJpLyNmJd wchEqx/yTn2CapeCvWLI0zfy2YR3gjlq7v/Y58ABQCH8+/Jphk4OZ//DSx78TMtwYQvb w8g6FXJNWMrEK0K5/DRjdygQCfgGaIsPzfFd/0P7LnX4WZvFksUAAPPipoM8+FpNPqfB 875g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=jglisse@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id d16si2741478qto.126.2019.03.25.07.40.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Mar 2019 07:40:16 -0700 (PDT) Received-SPF: pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jglisse@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=jglisse@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5683946289; Mon, 25 Mar 2019 14:40:15 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.20.6.236]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9254F1001DC8; Mon, 25 Mar 2019 14:40:14 +0000 (UTC) From: jglisse@redhat.com To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, =?utf-8?b?SsOpcsO0bWUgR2xpc3Nl?= , Ralph Campbell , Andrew Morton , John Hubbard , Dan Williams Subject: [PATCH v2 01/11] mm/hmm: select mmu notifier when selecting HMM Date: Mon, 25 Mar 2019 10:40:01 -0400 Message-Id: <20190325144011.10560-2-jglisse@redhat.com> In-Reply-To: <20190325144011.10560-1-jglisse@redhat.com> References: <20190325144011.10560-1-jglisse@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 25 Mar 2019 14:40:15 +0000 (UTC) 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: Jérôme Glisse To avoid random config build issue, select mmu notifier when HMM is selected. In any cases when HMM get selected it will be by users that will also wants the mmu notifier. Signed-off-by: Jérôme Glisse Acked-by: Balbir Singh Cc: Ralph Campbell Cc: Andrew Morton Cc: John Hubbard Cc: Dan Williams --- mm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/Kconfig b/mm/Kconfig index 25c71eb8a7db..0d2944278d80 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -694,6 +694,7 @@ config DEV_PAGEMAP_OPS config HMM bool + select MMU_NOTIFIER select MIGRATE_VMA_HELPER config HMM_MIRROR