Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 846C7C54E94 for ; Tue, 24 Jan 2023 19:50:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234631AbjAXTuH (ORCPT ); Tue, 24 Jan 2023 14:50:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229832AbjAXTuF (ORCPT ); Tue, 24 Jan 2023 14:50:05 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79EBA9EFF for ; Tue, 24 Jan 2023 11:49:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674589762; 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: in-reply-to:in-reply-to:references:references; bh=R85STr6GIhhr+ztwclj6pO6G7kZRrikgcAMPHnfe248=; b=eFk4/9hgL7Rawca+FgAOSo6KsKSCLyFdoD1Oho0erKm7DBFBrCjyYb0AowPhD1puH2HD6h fMXNOmjgsRgESJjLzSdbXInofgi2rj+FwLs6+BMJw+A6S3Fvfvwn05h8XALqgOHl/clh20 M4QGMN+4xMvnt0ldxMTsfuwBi7qr4jY= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-479-alXl0XevM-a1Eeu5m6Q0Vg-1; Tue, 24 Jan 2023 14:49:21 -0500 X-MC-Unique: alXl0XevM-a1Eeu5m6Q0Vg-1 Received: by mail-qv1-f70.google.com with SMTP id ng1-20020a0562143bc100b004bb706b3a27so8175394qvb.20 for ; Tue, 24 Jan 2023 11:49:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=R85STr6GIhhr+ztwclj6pO6G7kZRrikgcAMPHnfe248=; b=CDGqirCk2XQAaxqlKQSDtven3Ww+j8OVAE3TK6PCjhwRMVtpmqK9OR2uknY/Ha2lDd xK2x/13bqErtc9SvEAyxIQXJinNnILfoCbv3fXsTZVGzjZQIlp47MqPBcTMcYztTTsBs jT6c5HSEqW3Q8K9Wd5xmeIHUxCvNN874SxCROeZ7WKCDfbvs8J+6wx7jSLpgkAcpO+oz 0wt69yGopXIThO7CPFiZRxrLn4PVmH5H0C0QyHqdsrS+QBvW0vQeHSrotGUtiCop6vt4 tE252vbWfdlN0a9JfFjCwxsls3PJdoBTJzrLZUC3KyHDGtIntR0G8R4WSoiOkWW4IRrf gt2w== X-Gm-Message-State: AFqh2kok5S7v0BcVa/O/HADNKW5il4rBSwwO46uao0lbwuoN7B4TEnd7 dUI77h7ZMTbwRJl11K/l4qeDrSEyAIC/IAALXTxKIslgf/WvVmf2OKJUdgQtm7C4Kv2/tzxf330 sGqYQf1+qXi3P0jqmds6JQ5oH X-Received: by 2002:ac8:4758:0:b0:3b6:36a0:adbe with SMTP id k24-20020ac84758000000b003b636a0adbemr40222121qtp.6.1674589761219; Tue, 24 Jan 2023 11:49:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXu1WuGrk9av6WUp2+OZodLHrIX79DJLQmWseM2cM1QbiDQQOkRVcd+zhy6zkWOiNmjgkRdG5Q== X-Received: by 2002:ac8:4758:0:b0:3b6:36a0:adbe with SMTP id k24-20020ac84758000000b003b636a0adbemr40222080qtp.6.1674589760880; Tue, 24 Jan 2023 11:49:20 -0800 (PST) Received: from x1n (bras-base-aurron9127w-grc-56-70-30-145-63.dsl.bell.ca. [70.30.145.63]) by smtp.gmail.com with ESMTPSA id x12-20020ac87ecc000000b0039cc0fbdb61sm1789700qtj.53.2023.01.24.11.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 11:49:20 -0800 (PST) Date: Tue, 24 Jan 2023 14:49:18 -0500 From: Peter Xu To: Muhammad Usama Anjum Cc: Andrei Vagin , Danylo Mocherniuk , David Hildenbrand , Andrew Morton , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Paul Gofman , Cyrill Gorcunov , Alexander Viro , Shuah Khan , Christian Brauner , Yang Shi , Vlastimil Babka , "Liam R . Howlett" , Yun Zhou , Suren Baghdasaryan , Alex Sierra , Matthew Wilcox , Pasha Tatashin , Mike Rapoport , Nadav Amit , Axel Rasmussen , "Gustavo A . R . Silva" , Dan Williams , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, Greg KH , kernel@collabora.com Subject: Re: [PATCH v7 0/4] Implement IOCTL to get and/or the clear info about PTEs Message-ID: References: <20230109064519.3555250-1-usama.anjum@collabora.com> <0eb79bb3-7384-11c6-a380-c027f09305f2@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <0eb79bb3-7384-11c6-a380-c027f09305f2@collabora.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 23, 2023 at 06:15:00PM +0500, Muhammad Usama Anjum wrote: > > Firstly, doc update is more than welcomed to explain the new interface > > first (before throwing the code..). That can be done in pagemap.rst on > > pagemap changes, or userfaultfd.rst on userfaultfd. > Okay. I'll add the documentation in next version or after the series has > been accepted. Initially I'd added the documentation. But the code kept on > changing so much that I had to spend considerable time on updating the > documentation. I know it is better to add documentation with the patches. > I'll try to add it. Yes, logically it should be the thing people start looking with. It'll help reviewers to understand how does it work in general if relevant description is not in the cover letter, so it can matter even before the series is merged. > > There're four kinds of masks (required/anyof/excluded/return). Are they > > all needed? Why this is a good interface design? > Then, CRIU developers Andrea [1] and Danylo [2], asked to include all these > different kinds of masks. I'd thought of these masks as fancy filter inside > the kernel. But there wasn't anyone else to review. So I'd included them to > move forward. Please let me know your thoughts after reading emails from [1]. The idea makes sense to me, thanks. I just hope "moving it forward" is not the only reason that you included it. Please also consider to attach relevant links to your next cover letter so new reviewers can be aware of why the interface is proposed like that. IMHO it would be also great if the CRIU people can acknowledge the interface at some point to make sure it satisfies the needs. An POC would be even better on CRIU, but maybe that's asking too much. -- Peter Xu