Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1018929pxb; Thu, 15 Apr 2021 11:50:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypHnfeWCbMHRm5+J3jAl9ZE3SkGBrkQYD2wGuuCT+elq1ca5YpKALTZxVwRh4WLjk3oQA0 X-Received: by 2002:a17:90a:c08f:: with SMTP id o15mr5441879pjs.22.1618512624904; Thu, 15 Apr 2021 11:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618512624; cv=none; d=google.com; s=arc-20160816; b=RdPezaWQA9GmbAxnhyKrFDJ4wh4IZrYdOwOjEw9rMPSfFlrUgR7plKUvJY+fJ04LRF venJRzPpCYDbkeFf8dqmPYKFpCKrMF5o1OCXX/4JAsdDAM8NPtsriGTArENkomTnLBE8 Vq1vesUkEqDvtyZ92cV4K6OILGo/oUmdkxMtHqRl+xh3y2c/i6LZjUqC/CicRKAjbdy5 yciofxwiXS+KqawclPLgzmXj//yNu1jtUn+4n6A+h5CDbKVCghR+/I/N07mHt5tE12KF 2/ADlNkyQScsj+Ea1HZsREGjesyQa5PJMRe3D+GwKFhfPuNmoKikOuCVAqONM845QA8B btSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=+mbkINT23NQwVcWMsgi99GnmaMWJZnHq8mB1mAGG8Zs=; b=m8Pnman8Pwtd54EYfYoJEooM5zpH4p54wOO6FPs+JDXhpoQaY/6x16AYq6lAtHZSVe t9Xb2+tapbStVbTTul8F//9cSKpNbSwHxhgaVTZgf5HRgyFHt8t702L0iRIVwLZWi0xz FpWXiI25qBcnlrWQAkFr6WQ6NTw8RriUC3RUwnBD7491EH22lgnEAD502gkKSiQLG+r1 P6KirfR/t2WbFu8/m+Joqehdv99okbNfPexTJkOQJpbNd/QGStsfeH5CQZZ+jLQvAbBv 5UCbz5G34TXEl5+wQn1iH76mMhn9WhEojcwa0Q+x9Vh0VWSZq2RDw9Cm90j5MMITywD2 wvfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ZSlsp82J; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j3si3544530pgf.453.2021.04.15.11.50.12; Thu, 15 Apr 2021 11:50:24 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=ZSlsp82J; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234866AbhDOSsy (ORCPT + 99 others); Thu, 15 Apr 2021 14:48:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234775AbhDOSsf (ORCPT ); Thu, 15 Apr 2021 14:48:35 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6181C061359 for ; Thu, 15 Apr 2021 11:47:54 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id t9so3448729ybd.11 for ; Thu, 15 Apr 2021 11:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=+mbkINT23NQwVcWMsgi99GnmaMWJZnHq8mB1mAGG8Zs=; b=ZSlsp82JSr/sNFPR79ahcdPAjv0rihKZQF6PIsWd45K/weHiX1ENhXFh51YnUA2Rw9 Cf6i4yiopIGKsJ9Io1LLgzWYIpQU3svVu0S2TpyRpxWmh/yMDP7UtSNwzZx0C5U3UAqC Z6E3ktux4DnPEkfRFlkMUEEn1H1QP8/ik02060vWHBETna33faXZjivothMZB/7SGBBu SQ1gIZidNmOdKBJn2TK5AJptQIVaopKlOHzLC0U6o4UQHK7xk+vV6WQueAaIv9EsulVK OzbjzWVO+uW7/1rtb88UpcT47O2BHQ8qMQdkfFYpH3mHCvAfPTIkiDBT2zzdE+g/bJVD ir7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=+mbkINT23NQwVcWMsgi99GnmaMWJZnHq8mB1mAGG8Zs=; b=fARg0XvF4mzkYRh2Gw1uNwCosa1IyN0Y1PUVoHhuV1esyWMK2vAtTnwZ11wi5xgQNC poRwSfnAU0LKLH/2+tPceDsaymyf9ij7aCK6PcKNMo2B3yz02MmNB8i3XKThIvYpXerO Ae0wWD0mO8BcEo6GAAaUq4hSbokA2n2CwQWzSZTl/aazD7gnFiSUb1yVBPe1e10GL+wT Nf+0fpYB4nbiggGhC3sfasNsgCoJcxS+Do++ogPl9Tt+0gk1FM1HO+E72Lp80hLSLf7E WyMFbbCrBAKYyd2886BxlWaj40b6C9UvnpGnLI0Dub523ejxBPmoBcOJIReFR0Nn+uCr o6yA== X-Gm-Message-State: AOAM532j+oNZ58J5iuhSDByXHq/5MTYPdilT/zwECEOxIM+YtI7fanaz RQMuilNSU7/zN0HcqjXd2c975g9BaVgS0DvBaW1t X-Received: from ajr0.svl.corp.google.com ([2620:15c:2cd:203:21b1:6e5c:b371:7e3]) (user=axelrasmussen job=sendgmr) by 2002:a25:2412:: with SMTP id k18mr6986707ybk.436.1618512474171; Thu, 15 Apr 2021 11:47:54 -0700 (PDT) Date: Thu, 15 Apr 2021 11:47:32 -0700 In-Reply-To: <20210415184732.3410521-1-axelrasmussen@google.com> Message-Id: <20210415184732.3410521-11-axelrasmussen@google.com> Mime-Version: 1.0 References: <20210415184732.3410521-1-axelrasmussen@google.com> X-Mailer: git-send-email 2.31.1.368.gbe11c130af-goog Subject: [PATCH v3 10/10] userfaultfd: update documentation to mention shmem minor faults From: Axel Rasmussen To: Alexander Viro , Andrea Arcangeli , Andrew Morton , Hugh Dickins , Jerome Glisse , Joe Perches , Lokesh Gidra , Mike Kravetz , Mike Rapoport , Peter Xu , Shaohua Li , Shuah Khan , Stephen Rothwell , Wang Qing Cc: linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, Axel Rasmussen , Brian Geffon , "Dr . David Alan Gilbert" , Mina Almasry , Oliver Upton Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Generally, the documentation we wrote for hugetlbfs-based minor faults still all applies. The only missing piece is to mention the new feature flag which indicates that the kernel supports this for shmem as well. Signed-off-by: Axel Rasmussen --- Documentation/admin-guide/mm/userfaultfd.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/admin-guide/mm/userfaultfd.rst b/Documentation/admin-guide/mm/userfaultfd.rst index 3aa38e8b8361..6528036093e1 100644 --- a/Documentation/admin-guide/mm/userfaultfd.rst +++ b/Documentation/admin-guide/mm/userfaultfd.rst @@ -77,7 +77,8 @@ events, except page fault notifications, may be generated: - ``UFFD_FEATURE_MINOR_HUGETLBFS`` indicates that the kernel supports ``UFFDIO_REGISTER_MODE_MINOR`` registration for hugetlbfs virtual memory - areas. + areas. ``UFFD_FEATURE_MINOR_SHMEM`` is the analogous feature indicating + support for shmem virtual memory areas. The userland application should set the feature flags it intends to use when invoking the ``UFFDIO_API`` ioctl, to request that those features be -- 2.31.1.368.gbe11c130af-goog