From patchwork Mon Mar 29 22:18:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 12171055 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1187DC433C1 for ; Mon, 29 Mar 2021 22:18:48 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id AA5AA61581 for ; Mon, 29 Mar 2021 22:18:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA5AA61581 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BEB6D6B0081; Mon, 29 Mar 2021 18:18:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B77236B0082; Mon, 29 Mar 2021 18:18:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 976EF6B0083; Mon, 29 Mar 2021 18:18:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0072.hostedemail.com [216.40.44.72]) by kanga.kvack.org (Postfix) with ESMTP id 7B8696B0081 for ; Mon, 29 Mar 2021 18:18:46 -0400 (EDT) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 3AD80180AD822 for ; Mon, 29 Mar 2021 22:18:46 +0000 (UTC) X-FDA: 77974327452.02.1C815FE Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf28.hostedemail.com (Postfix) with ESMTP id 89B33200024B for ; Mon, 29 Mar 2021 22:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617056325; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E2GVHJmjqb2iBlZUx1y2wNYv3goudnNwQwgOfUhB7yU=; b=AMiB1fSDr0AkGTnBZhyjjcAM+p7reE5p0nriEebZEXDyeV801x423v9CAMh+S0tl8qURV8 LY/mVtSlPOilQH0+A0f4+HvW27iTltrsJYjaBrUw3n4cY7r9pApMbaoeJe8uZ2AlirEAa9 qJY0RMXyQc/vFiu0Zyov3gPpFfU9E4Y= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-300-xXOwfkQiPC2uliy4ZjmAzw-1; Mon, 29 Mar 2021 18:18:43 -0400 X-MC-Unique: xXOwfkQiPC2uliy4ZjmAzw-1 Received: by mail-qt1-f198.google.com with SMTP id c20so8514070qtw.9 for ; Mon, 29 Mar 2021 15:18:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=E2GVHJmjqb2iBlZUx1y2wNYv3goudnNwQwgOfUhB7yU=; b=De4XD8tmiJmmU0EkmNL6e7jPAsf7OPMeoSDoHzmt5SeA6w741H55H5bCWUWoF43RzK 2UdazJWnwgTQPNkU9zQ1E2aBkNYxO+dcc9aOQreTOpIpkearw/aTSrhQrbCclbFs/SNv iDwoWH6GFTyFvprrhrqIhDH+K5sPBcH8AKjILccN+6pq5nhd54RXTeH0RLOl9cX0EdT2 llw4WZj464RdeawBuvhYwo+2V1Q1LBys+yL12gYmHSY9XXWIN4zjxL69pwrj8AZ6G1xR PbepkUs79wL6ddONy9S/ug9QRjmhTyKdxfBwLMdunpKPMDMFGDLE8N0AGGJ/1oxA07Bz z3UQ== X-Gm-Message-State: AOAM5317NiwX77X97JeGqpRDN8clK8jOUHYA1oG14L5oKuFsvVmllWZf /o9ZhBCHVVKGSETYdmoTby1yhKXcWzqCIPEV/d85CMtqhEfR3zkiYmIcdmtVRKzK8pcmHpFl1D2 4SAhxLYNj+kpWIyiPhg1rN/0tSDyI8+D2sKcHGRXnfqyvulW8/eB0pMIslEG7 X-Received: by 2002:ac8:a04:: with SMTP id b4mr24888719qti.376.1617056321759; Mon, 29 Mar 2021 15:18:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgNQ6N3HPLhOf3hwMshyADiJemUjJNr4a4zc+S3pm/C0PON3OhYbkkFJRQ+v/eqjEnWMMxmw== X-Received: by 2002:ac8:a04:: with SMTP id b4mr24888695qti.376.1617056321467; Mon, 29 Mar 2021 15:18:41 -0700 (PDT) Received: from xz-x1.redhat.com (bras-base-toroon474qw-grc-82-174-91-135-175.dsl.bell.ca. [174.91.135.175]) by smtp.gmail.com with ESMTPSA id i17sm12255215qtr.33.2021.03.29.15.18.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 15:18:40 -0700 (PDT) From: Peter Xu To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-man@vger.kernel.org Cc: Axel Rasmussen , peterx@redhat.com, Nadav Amit , Mike Rapoport , Alejandro Colomar , Andrea Arcangeli , Michael Kerrisk , Andrew Morton Subject: [PATCH v5 3/4] ioctl_userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs Date: Mon, 29 Mar 2021 18:18:32 -0400 Message-Id: <20210329221833.517923-4-peterx@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210329221833.517923-1-peterx@redhat.com> References: <20210329221833.517923-1-peterx@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=peterx@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 89B33200024B X-Stat-Signature: ap1bxk65hy4mw9mkpfg5b1m9mdtmjxfi Received-SPF: none (redhat.com>: No applicable sender policy available) receiver=imf28; identity=mailfrom; envelope-from=""; helo=us-smtp-delivery-124.mimecast.com; client-ip=170.10.133.124 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1617056325-619923 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: UFFD_FEATURE_THREAD_ID is supported in Linux 4.14. Acked-by: Mike Rapoport Signed-off-by: Peter Xu --- man2/ioctl_userfaultfd.2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index 47ae5f473..d4a8375b8 100644 --- a/man2/ioctl_userfaultfd.2 +++ b/man2/ioctl_userfaultfd.2 @@ -208,6 +208,11 @@ signal will be sent to the faulting process. Applications using this feature will not require the use of a userfaultfd monitor for processing memory accesses to the regions registered with userfaultfd. +.TP +.BR UFFD_FEATURE_THREAD_ID " (since Linux 4.14)" +If this feature bit is set, +.I uffd_msg.pagefault.feat.ptid +will be set to the faulted thread ID for each page fault message. .PP The returned .I ioctls