Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp82586rwo; Fri, 21 Jul 2023 08:50:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzQJru1xrphRYwzKwh5bHkCZWS5ZAKWzVfzekKf0dksl+JqouSzSHhbug2DrymnxjjEW7l X-Received: by 2002:a05:6358:2619:b0:135:57d0:d171 with SMTP id l25-20020a056358261900b0013557d0d171mr332506rwc.15.1689954656704; Fri, 21 Jul 2023 08:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689954656; cv=none; d=google.com; s=arc-20160816; b=gZ7f4KLA2s0IM8y1JwSqA9BCB+hMc/Mq05jQqokyPGF/aVlDMKbJAs0NJClIE8PX0N K28dex1DU/8hO5NJcOG02Lz2ETP+WVdhSVoxdi6jfwvVa4wmkAs4hy3gC0zmm2pfFEgu 3ixSMU/78ceVouRLXV8lpCANBpb0lkoap77AZ9k+sr9h9ZYyXvMzYhdMwx50QDr3ODDa fbF/E8iahsR/wNSbLaO2EZmddqP25/WGykw4Z6BGzo1kYBkfXWDqgK7th8I+OVCzYUKI Ze8N6zRu0BWEMqNhDKo/oPX+tCwzLXc521uBre5/LIJY+jsrbDWdWKPoeyabXanIBZn5 IybA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6/8OU9nD+IEREkyQ5osWmr6BhwzoAr61328Brf7SVP4=; fh=74RIghj0frHrOB1nXd03dYnKO6b9y78NE8cjMcPZFUc=; b=cI0L9etgXoJDwqQTICBdO2DtJleLg34xLwXmaFORvvVLNmIdf4ck7NxicfMZmnZwgr J1Rmvtfe29zutXcl2Gu9yfv3CgTcSJm7YWPgf5zfg5+0d1d66Y0HB580DaYlCjzMKW/O Mhbl39LB4c4n4JXiQ3arHOl9BbEJiobswBfADe3tdH73tUDyNwkTW2zXtL+tG1p5SVtW AKnCjf36XHYomFVaz3hXmZBtUdwpvpQ2Gor+RWBj9imB3CkZYxE7rIr9sUj9W7sRy5sP 1dUicpH2cxLyGF1tXMWtrLM+/U9IitLH5hNwERRAZUXfLdL9t9YBM8/ea/TmhHACsm0B gE8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="epf/EKYE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j72-20020a638b4b000000b0056382603322si1970679pge.572.2023.07.21.08.50.42; Fri, 21 Jul 2023 08:50:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="epf/EKYE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230347AbjGUOuM (ORCPT + 99 others); Fri, 21 Jul 2023 10:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230243AbjGUOuL (ORCPT ); Fri, 21 Jul 2023 10:50:11 -0400 Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E758121; Fri, 21 Jul 2023 07:50:10 -0700 (PDT) Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-78362f57500so82639339f.3; Fri, 21 Jul 2023 07:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689951009; x=1690555809; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6/8OU9nD+IEREkyQ5osWmr6BhwzoAr61328Brf7SVP4=; b=epf/EKYEjv8/Tmn1kAa4qxASe+g+4XH5EcGPt6FatDi5YyhhHpxbn3uCNmAQo2fBnY gFsJIuy0cgUZIkjzkoNs/rgs4vpWEIEb7+QRG+BmCMuy8pBHshd7tTZ+njl56vR5bphm mvjiic2q8wIhpX+uQh4tE2GAEY+DQ+eUZkuugSabxdf75zXo5DfTuJ5y84H+Qpu38VSO vJoRrKY03RmY/Uk8WX8hKQI0LvxZYsyyR+wQz4wtryl98KH3nZmEXM/IXJRZZ4wb8ccc ctrUazfTlmkGS/dCgdabHOXJcoN22Q0xaMdxvkcflPJDzdwrXpxo0wJ7504HQdju9CY2 h90w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689951009; x=1690555809; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6/8OU9nD+IEREkyQ5osWmr6BhwzoAr61328Brf7SVP4=; b=gabHZHxORODrs7+psVDbBUlTm80BVhtQmAOD7owp/Q18zX+4TTrYT5KwAxOZPVK/ii zZwtzdIA9uF0i6v8Lcj/YYQlTmiqeF17/xBSHXO6xS6pFIV3vwEuCxQr8fPJqdMct3Vn mdwWkJM35H2JwIQrVAji8f4AldV6QZAkz5IQPll9ztMlIom5QNDSgkpLOA+rwU5jTmez FsahYFqALJWJN9O2rEtUkqFSnr5O281ZriKb51u0jAuPek4SPhpQTwO13IJiEtIZvAzB RLPBeNAFmHEnukbil8xrqBCCWMslzy7c3DWW0uPSqVKkRh6O9s3hlXTthM9uGDhWJgFy etEg== X-Gm-Message-State: ABy/qLYp5JBrT7vg+8cPJ0X7Pk80petQctMbduFwtayqVlqfeU6qMCff Z0J7LY/WGhicyMxnEjcGHRtGXBQd0M+i1XWIIYc= X-Received: by 2002:a6b:f00a:0:b0:786:463b:2ceb with SMTP id w10-20020a6bf00a000000b00786463b2cebmr228899ioc.11.1689951009297; Fri, 21 Jul 2023 07:50:09 -0700 (PDT) MIME-Version: 1.0 References: <20230713101415.108875-6-usama.anjum@collabora.com> In-Reply-To: From: Andrei Vagin Date: Fri, 21 Jul 2023 07:49:58 -0700 Message-ID: Subject: Re: fs/proc/task_mmu: Implement IOCTL for efficient page table scanning To: Muhammad Usama Anjum Cc: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Danylo Mocherniuk , Alex Sierra , Alexander Viro , Andrew Morton , Axel Rasmussen , Christian Brauner , Cyrill Gorcunov , Dan Williams , David Hildenbrand , Greg KH , "Gustavo A . R . Silva" , "Liam R . Howlett" , Matthew Wilcox , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Mike Rapoport , Nadav Amit , Pasha Tatashin , Paul Gofman , Peter Xu , Shuah Khan , Suren Baghdasaryan , Vlastimil Babka , Yang Shi , Yun Zhou , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, kernel@collabora.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 20, 2023 at 9:27=E2=80=AFPM Muhammad Usama Anjum wrote: > > Thank you Micha=C5=82. > > On 7/21/23 12:28=E2=80=AFAM, Micha=C5=82 Miros=C5=82aw wrote: > > b. rename match "flags" to 'page categories' everywhere - this makes > > it easier to differentiate the ioctl()s categorisation of pages > > from struct page flags; > > c. change {required + excluded} to {inverted + required}. This was > > rejected before, but I'd like to illustrate the difference. > > Old interface can be translated to the new by: > > categories_inverted =3D excluded_mask > > categories_mask =3D required_mask | excluded_mask > > categories_anyof_mask =3D anyof_mask > > The new way allows filtering by: A & (B | !C) > > categories_inverted =3D C > > categories_mask =3D A > > categories_anyof_mask =3D B | C > Andrei and Danylo, > > Are you okay with these masks? It were you two who had proposed these. I am okay. > > > -- > BR, > Muhammad Usama Anjum