Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp151569pxy; Tue, 20 Apr 2021 15:11:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwi9EbhbBp5MStFwB/B2mIGmz2gHxW8NUbgQB/Z9W4iEfEsUZhy3nAJYPHvo0uheDKnh0AG X-Received: by 2002:a05:6402:1056:: with SMTP id e22mr34761692edu.279.1618956687678; Tue, 20 Apr 2021 15:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618956687; cv=none; d=google.com; s=arc-20160816; b=pdq7YYGTKb7AZc74Gp58ohLZXf9r88XEZlisL4k1yO0kK+hjOkTjjFtuBy6AjWS18N tdOIziLMuhSG6mLaff7LtofKzmaC9AbEy421DSNXIH/I4WrwDPbA2tdLBbu+yICkprCD Yv8s6Iewdvl9QQaGA6flV6ATEUz22MuqKR0ga/E4BWjXuvRW5MBuCPOVOymzErmGsirM lDGYe673D+Ix9erKVCHMaikK3KMKB018alobsnEL4TIyLSUv6VFCLI0tJxOSSCy0Pj6y bD8PLsvx1hvrVm9wsr0SbcSAqj5VY+cl23Kf4ce7mAXQiJBwdf4BG27UiJD5NZljy/rj HQhQ== 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=QalInJNrkxYSeor8Y9bP5jCKJf3rHHvEcUFF6iyZ6ZrYj9O2eF4FCEuOB625Sx4j2V igOXcZDrNvfUak3EDnv8YYFhCg/MQxV10R0kGSKMitOLM5GAPM6owxJCMLxdEEJEebD5 OVFTV+ozU9tKqyAv8fnpF8gJW3POmE/6vDzE9F2cNN5g/inCGE1vW07Bx80FK/VjNyOU UHeYd00KVFBH6xnOXF8raa9sgQWmGWJqwsmn84gl4XedFX5QtF9pWREPTIiDH2LJr60/ 1139I60a7hrGspvJUEarhpQV+Ya3ZCtCUaiM/LxcBz46/dKAFdVILzoDQb1z/LC7XkNQ zFmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=po9ArG7Z; 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 q9si328170edd.324.2021.04.20.15.11.04; Tue, 20 Apr 2021 15:11:27 -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=po9ArG7Z; 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 S234381AbhDTWJZ (ORCPT + 99 others); Tue, 20 Apr 2021 18:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234331AbhDTWJC (ORCPT ); Tue, 20 Apr 2021 18:09:02 -0400 Received: from mail-qt1-x849.google.com (mail-qt1-x849.google.com [IPv6:2607:f8b0:4864:20::849]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA52CC061349 for ; Tue, 20 Apr 2021 15:08:27 -0700 (PDT) Received: by mail-qt1-x849.google.com with SMTP id 7-20020ac857070000b02901ba5c36e1b2so2690193qtw.21 for ; Tue, 20 Apr 2021 15:08:27 -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=po9ArG7ZdtzYVDcv5vyMGKJeuPtnghxwSIn+gUjtsSZPemrE/klwSLC5Hm14ZzmVBr J4fsL1TqZkclrXJQjUYboxz/RZII5pyYDh6HnkqPk414pWLjG4kpolNiR9s75do6g2Pr DpY3NvwNL7a+rT74p+SLBJs1f45c6PET88l3inft/kpGjTYvvhQIjy7gAGRUbiwr4Fv2 2Q7p3yMlGf9aUzi7Tio8EON2fR6Vu88aq+LcqtbIUmOgkVbX/B3Am1bivGu/zj7wXnBW aW6henJINq/oy28fXQsFp37HYoat5FM6j15ZtXY1rxjN5oKqtEd6dQFDNqVQnNPT/ZSQ kwZA== 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=dedqJwERgQs9CfMidnL9xVDn8KtcX8bESUFSbZvjCBGX5WqYcuo0VbnUNMw3+eQyEI lqNDtJcvJuM1qZ1r23eg1p+Kq6uOVk28ulj1GXmnxPHJKxtakE/Cj0rOvT7EjhFcl2x7 aLnPU8wbkQrVGx6mZWrPhuJ7yb+ZYHQKY9/OS8gnlO48i054Fks6MGLbvw0PEj0lhvM3 6uJBQ6EuEO4GEtCMBTWGShAyZgypx1vmSlYKCKq2CDz8OICXSKzLicmTHIb/aI/W7KmB YcOM08y3WzmOKpKupOmto5RHWYAbmbfpZ9WWtLdvx/PspRAaA7aJ40Yfp2PusIRwZYke rVzA== X-Gm-Message-State: AOAM533Qn81tFNhWvvts0LY25/RepRD67jjS0BMofr0SF1K+cY1/0F2C IWMabcpl6G0Np3lY3u60vL+9gyTCYc1Si06IjcCy X-Received: from ajr0.svl.corp.google.com ([2620:15c:2cd:203:c40e:ee2c:2ab8:257a]) (user=axelrasmussen job=sendgmr) by 2002:ad4:4944:: with SMTP id o4mr29064929qvy.18.1618956506891; Tue, 20 Apr 2021 15:08:26 -0700 (PDT) Date: Tue, 20 Apr 2021 15:08:04 -0700 In-Reply-To: <20210420220804.486803-1-axelrasmussen@google.com> Message-Id: <20210420220804.486803-11-axelrasmussen@google.com> Mime-Version: 1.0 References: <20210420220804.486803-1-axelrasmussen@google.com> X-Mailer: git-send-email 2.31.1.368.gbe11c130af-goog Subject: [PATCH v4 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