Message ID | 20230919190206.388896-2-axelrasmussen@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3823086vqi; Tue, 19 Sep 2023 19:22:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHerHb+0fT8iy23w/NvAga7jEs4XDw61eBsuLvoGrvwXm67vhfk/7rM3YZqXxSrSe9b52oO X-Received: by 2002:a17:902:e5cc:b0:1b9:e241:ad26 with SMTP id u12-20020a170902e5cc00b001b9e241ad26mr1604313plf.9.1695176579374; Tue, 19 Sep 2023 19:22:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695176579; cv=none; d=google.com; s=arc-20160816; b=q73WV79h6l/uw3lj3X+JHy7D5/GsMFGXhA2C4lS8EvSKvO7q2cS905T3Lybu1xyghm v5CPu8pN6zHFAdBaGJU/WFlABp+UgosdGbbXTDpeH8d5drfy57JF1oXHYOGG9iSluapt GGzL3tmIjdvumiK6NeGQCvi2hpMCyPUefno3QfDPGIaOIH4ArnwtY/MinV3Y/Z88jhFv iL6mIyFIMKOyFkAq7/ggXmLeHsIrRd1b1Hkk4y2jL0C8m7QcWTpKUkj1rDrfzE+CjN43 AEfCB58C/Ypty/U/YYpiJmWg5UfPF8SzT6nY5cqNFYmFKKwiFW0PD6XneYL7FAn5IM6a nkfA== 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:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=OM7/ZBsweEHQQFPt50lI+eLlVKDaLR0lSsGnYD/uIDg=; fh=SqwPTGdhTS3wVH9FltNQ4n/lDM1p3ApEDnroT8zra0U=; b=xuZwm6dyWc5M7Q9MUiZfuDaz38KpHYKrcxTTcb9R7FRAbJ0VwNGZAFdLx8IKSgKd+2 82lUlP7aHh94Bi//tE1HIL/0Jrqqi2O4kaTKV+ghtsu2Zzpw0y7DyvZzyVhsrGSHpqVz F+F0pw0EmSLGz+5oDoN00kw8fa2SujWUgRtohSIPVhnq9aJFwh2vuN+dKcWHTm4epiU3 AoWUoN/yckRuoK7lrjXMfaZcuGWnXBsSTDI3oge8vZflltu+nj2xcXPSAfpB3/menBlL UfwXATybHTBsDrHGlxEtHpQCye/KeIGAylx/S3OMjgQhk8tFktRppxql9kcOrFzztqRR nLWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TL7YK71y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id le7-20020a170902fb0700b001bd949bcd75si10488271plb.575.2023.09.19.19.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 19:22:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=TL7YK71y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D1E6D820C35E; Tue, 19 Sep 2023 12:03:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232594AbjISTCZ (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Tue, 19 Sep 2023 15:02:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232503AbjISTCW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 19 Sep 2023 15:02:22 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7298E1 for <linux-kernel@vger.kernel.org>; Tue, 19 Sep 2023 12:02:16 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-59bdac026f7so73205247b3.0 for <linux-kernel@vger.kernel.org>; Tue, 19 Sep 2023 12:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695150136; x=1695754936; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=OM7/ZBsweEHQQFPt50lI+eLlVKDaLR0lSsGnYD/uIDg=; b=TL7YK71y+TUTy6fGHYiqdt4EtznmZCsTiHX38kHatN4xhHv67/jiXlPuGF2TixAK/m AwAnc1huXwj7Kkc1XDnMP1lT4t+s/lZd7VTuW6gu2fgOFm1OiPF7V4JZgnOuavWSO+EB OylC/CtOFWRfzrNpB0UKREr5Bd6tSYckKJXohuyIjLLv3vUrmi3dlHv4IahrJ2oaB3em UOpkZCFgCRhIanNHMSCO4awRhDvx3N9Y2pVAjUXrKBO6aqF93RDswWshoCVSVLu3ZgF2 km9BZHT3khi3N+Oi4nroprbc4fCKPDIMV1dfsdu29GaMjWZnK1xf66H5lDijGxxOdSrO h/lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695150136; x=1695754936; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OM7/ZBsweEHQQFPt50lI+eLlVKDaLR0lSsGnYD/uIDg=; b=dRh4U7RAuuBxjfZVEwKn8TkULqOs1WF8Tqim8fb5SYDBaHHq7x8d4NSwiS5dPUSKf1 /40I5TJVFfeZudOpxciQ2lHsBf0vMKgDssIwioF2pVZTWGN+gu+wJcVAgsm3nUl0raE1 uB38eX8DxQkzksLEH4qpxi0Y4OmVDuIRh99Kx6E3MR9ep9fE0266zmxLPdNDqdwK7I0r hDRXDCldlkxBY1EWbEOSQsPYSD/ZZHoX1xwGXw/zI2QBMhA9ZoPlOS4inMXRaUDR46JT Aqr5MH2TGz0GdvC0orBkVRQSdRPr7p+lZcLbiWhAuxaN+325mPpxHJMJ8I5ektnJHEtl Ygyg== X-Gm-Message-State: AOJu0YycEw3Qy03Q8xo5Biljt1dYYt7UBRJbiZU3obbPG5u06X1mo9s5 KNZ8aX/9Zx3fcbdAI1+vkkP79a2dB/ya+HfHAFiH X-Received: from axel.svl.corp.google.com ([2620:15c:2a3:200:8f5a:6a6a:cafc:a3ad]) (user=axelrasmussen job=sendgmr) by 2002:a25:ab48:0:b0:d81:68ac:e046 with SMTP id u66-20020a25ab48000000b00d8168ace046mr6411ybi.12.1695150135954; Tue, 19 Sep 2023 12:02:15 -0700 (PDT) Date: Tue, 19 Sep 2023 12:01:57 -0700 In-Reply-To: <20230919190206.388896-1-axelrasmussen@google.com> Mime-Version: 1.0 References: <20230919190206.388896-1-axelrasmussen@google.com> X-Mailer: git-send-email 2.42.0.459.ge4e396fd5e-goog Message-ID: <20230919190206.388896-2-axelrasmussen@google.com> Subject: [PATCH 01/10] userfaultfd.2: briefly mention two-step feature handshake process From: Axel Rasmussen <axelrasmussen@google.com> To: Alejandro Colomar <alx@kernel.org>, Peter Xu <peterx@redhat.com> Cc: linux-man@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Axel Rasmussen <axelrasmussen@google.com> Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 19 Sep 2023 12:03:04 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777521477107112368 X-GMAIL-MSGID: 1777521477107112368 |
Series |
userfaultfd man page updates
|
|
Commit Message
Axel Rasmussen
Sept. 19, 2023, 7:01 p.m. UTC
This process is critical for programs which depend on extra features, so
it's worth mentioning here.
Future commits will much more fully describe it in ioctl_userfaultfd.2.
Signed-off-by: Axel Rasmussen <axelrasmussen@google.com>
---
man2/userfaultfd.2 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Comments
On Tue, Sep 19, 2023 at 12:01:57PM -0700, Axel Rasmussen wrote: > This process is critical for programs which depend on extra features, so > it's worth mentioning here. > > Future commits will much more fully describe it in ioctl_userfaultfd.2. > > Signed-off-by: Axel Rasmussen <axelrasmussen@google.com> Patch applied. Thanks, Alex > --- > man2/userfaultfd.2 | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 > index 40354065c..1b2af22f9 100644 > --- a/man2/userfaultfd.2 > +++ b/man2/userfaultfd.2 > @@ -200,8 +200,9 @@ the application must enable it using the > .B UFFDIO_API > .BR ioctl (2) > operation. > -This operation allows a handshake between the kernel and user space > -to determine the API version and supported features. > +This operation allows a two-step handshake between the kernel and user space > +to determine what API version and features the kernel supports, > +and then to enable those features user space wants. > This operation must be performed before any of the other > .BR ioctl (2) > operations described below (or those operations fail with the > -- > 2.42.0.459.ge4e396fd5e-goog >
On Tue, Sep 19, 2023 at 12:01:57PM -0700, Axel Rasmussen wrote: > This process is critical for programs which depend on extra features, so > it's worth mentioning here. > > Future commits will much more fully describe it in ioctl_userfaultfd.2. > > Signed-off-by: Axel Rasmussen <axelrasmussen@google.com> Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org> > --- > man2/userfaultfd.2 | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 > index 40354065c..1b2af22f9 100644 > --- a/man2/userfaultfd.2 > +++ b/man2/userfaultfd.2 > @@ -200,8 +200,9 @@ the application must enable it using the > .B UFFDIO_API > .BR ioctl (2) > operation. > -This operation allows a handshake between the kernel and user space > -to determine the API version and supported features. > +This operation allows a two-step handshake between the kernel and user space > +to determine what API version and features the kernel supports, > +and then to enable those features user space wants. > This operation must be performed before any of the other > .BR ioctl (2) > operations described below (or those operations fail with the > -- > 2.42.0.459.ge4e396fd5e-goog > >
diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index 40354065c..1b2af22f9 100644 --- a/man2/userfaultfd.2 +++ b/man2/userfaultfd.2 @@ -200,8 +200,9 @@ the application must enable it using the .B UFFDIO_API .BR ioctl (2) operation. -This operation allows a handshake between the kernel and user space -to determine the API version and supported features. +This operation allows a two-step handshake between the kernel and user space +to determine what API version and features the kernel supports, +and then to enable those features user space wants. This operation must be performed before any of the other .BR ioctl (2) operations described below (or those operations fail with the