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 C4090C27C76 for ; Wed, 25 Jan 2023 14:45:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235880AbjAYOpx (ORCPT ); Wed, 25 Jan 2023 09:45:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235628AbjAYOpv (ORCPT ); Wed, 25 Jan 2023 09:45:51 -0500 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 56C23268F for ; Wed, 25 Jan 2023 06:45:33 -0800 (PST) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-506368dc06dso68742397b3.9 for ; Wed, 25 Jan 2023 06:45:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=XGfGUjaGLH+8XJ9armKqzpt89zfr+otVnTMhjbMCoI4=; b=rOOvRup5i80rTrCdededOy5eOHDXSOWC4JOHuwbako4X/IP6tSOe4t0Uq6NT9zncrt 6pMzQAKz0XS6hSLJ1vnCRioRsOfbndERsOdxfrWcgy1EQgQ2YQyO9+l+nDLm7MiwNV+2 O00Pyo/suVmmHuA0IXW65H2rKJ0/CUU0nw7aChk2qLJNlSvnqjwBNmaYg3ib2tVZd39X 3q8s8bSmCLgiuetJPB0SxvCvejHEcyEiSNil7W3RYZMXY/jKURm5eZW6aTUFQhs3lcZe 1o2/S95mBqBEzagirjGXsYc3TmmxrlkPcfLwgXs/8VPAPwaB0bzNvZfCS06Lbep9Gqta xysQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=XGfGUjaGLH+8XJ9armKqzpt89zfr+otVnTMhjbMCoI4=; b=26qlMb8fWHgFyIIWYGRYpeOm8pM56ejNRw2Ronk8fDYbaa1bjgOvd1wQPFzsFc+ohJ 1H8dlA1wx3j5C1LziElfP2sVHjXCm1gibTmP6VeaIAA0jxhyDWW7oD2Jl2hxxK1VjeXs CDskUaOwYXNnegXyY88DmyQ5OCoVe2DTGNOaDgY5dMsJw6tiO39/F9qMTRDziaSHQ7L6 9bw/yaw3hJRHgI9xInjUbj4cdmXLQqJzTX98bw0ya6nDx0WV8q1iFchCvyTyYwkNzUtI ryH2+pAf2MLNkMWbSOTeXUtIo+NcQwDbB9GUTajS00TIAAdy3LCSAu51nhknFHmpimeg dI1A== X-Gm-Message-State: AO0yUKUYU0yLItC2gownh1ZnibFxVpOKTGm0JT4n7vmOUFJWEn7PTwa7 HzdcY5uoHDlKuFw0wXQaM7QcqrVRblKY X-Google-Smtp-Source: AK7set/tmTwyZYMl/jIoH2jKvSplFAhH7z4Cf9+VFwkQOG+1wRywqg63gkehHrmk61wsnNB67mOZRJgPfpy9 X-Received: from mdanylo.waw.corp.google.com ([2a00:79e0:9b:0:1ad0:76d7:3d4b:21e1]) (user=mdanylo job=sendgmr) by 2002:a81:ac61:0:b0:506:596a:586c with SMTP id z33-20020a81ac61000000b00506596a586cmr567812ywj.237.1674657932535; Wed, 25 Jan 2023 06:45:32 -0800 (PST) Date: Wed, 25 Jan 2023 15:45:29 +0100 In-Reply-To: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.39.1.405.gd4c25cc71f-goog Message-ID: <20230125144529.1630917-1-mdanylo@google.com> Subject: Re: [PATCH v7 0/4] Implement IOCTL to get and/or the clear info about PTEs From: Danylo Mocherniuk To: peterx@redhat.com Cc: Liam.Howlett@oracle.com, akpm@linux-foundation.org, alex.sierra@amd.com, avagin@gmail.com, axelrasmussen@google.com, brauner@kernel.org, dan.j.williams@intel.com, david@redhat.com, emmir@google.com, gorcunov@gmail.com, gregkh@linuxfoundation.org, gustavoars@kernel.org, kernel@collabora.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, mdanylo@google.com, namit@vmware.com, pasha.tatashin@soleen.com, pgofman@codeweavers.com, rppt@kernel.org, shuah@kernel.org, shy828301@gmail.com, surenb@google.com, usama.anjum@collabora.com, vbabka@suse.cz, viro@zeniv.linux.org.uk, willy@infradead.org, yun.zhou@windriver.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 24, 2023 at 8:49 PM Peter Xu wrote: > 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. I acknowledge that this interface looks good for my use case to get interesting pages from a big sparse mapping. For Andrei's use case to iteratively dump memory it also looks good IMO. > An POC would be even better on CRIU, but maybe that's asking too much. Can't promise now, but happy to do this when there'll be a clear signal that this patchset is about to be merged. Meanwhile, I'll make some smaller tests with this patchset rebased and will get back if there are some problems with that. > -- > Peter Xu