Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5946724rwl; Tue, 11 Apr 2023 12:14:24 -0700 (PDT) X-Google-Smtp-Source: AKy350ZsIwKYWK0wo2y/F2dIg2dxLZixkUzs38YXjn/7csW1tNt8sm43wAYGKNMXMoAqduagyxOZ X-Received: by 2002:a17:906:4691:b0:946:e908:3af0 with SMTP id a17-20020a170906469100b00946e9083af0mr238189ejr.26.1681240464473; Tue, 11 Apr 2023 12:14:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681240464; cv=none; d=google.com; s=arc-20160816; b=oUtTXLqVBFlhJXeD1chy9D/dwnt3nVpB7kH3p3suy625q9hKXTorPEsFjgc00z/W/s v2k5Z3bhBwxgzbA+fyZ+xjtlu/mjTS0tf5PGzT9YGQXMKaaNXGg99wQDq2LyfXjFtgJ2 pooSzZmirIPda1oB4U+De5rtGDLkw0BkxMarTFu/rahMv/2xvdlkwEruYdxM9ndux2gP JLBfJz7F74QB6zZhXxGFGWiww41AbCdAG9EvyQBsUW8GIgjvtLWBL7oxRGE8PQyHd509 A5RySZHyKUi5K2tCug8MdjKKUGnV/oKQ0TRjJJZiI//KkRryQ74EwJRnc/iQrObNgoQh gbKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RxO1n2PWxys5TFVibtUzDwp6ndZRuDOsr/RkUx0+dQ0=; b=X9Vv7Br4ljIn09KjIAzMtDLPY4dBSwTR5Tp7YO0KVzck47ZcdSaBgmIjITFJAUXRsv lq60eNvAaH1kCMkIN0DnNY2+bDfC80DjB8QkRD7Hsa2npT2f1QbmIEQHBLSHPdDcFsB0 qCRvPCpkDqYuCcN5wF9IByn53aVnLsxUwu297IJvpDdC0UlQlN6FTDPBfSoMnRICyIYc Je/aMM/2l/cvhuILm2zibhUp7NMvUJiD201bXp4LJ0I9dyEt9x+/wY29ezHKx6wtZsYn cUlsomWF1O8ximp8tthssCfPZYJYBbsk8W3tU/2Syw4f5u8rRnxEi7JoRXhzuMi3ON55 2VPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=EM5Si4q9; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020aa7d04e000000b004fd9cad9928si1925715edo.40.2023.04.11.12.13.59; Tue, 11 Apr 2023 12:14:24 -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=@redhat.com header.s=mimecast20190719 header.b=EM5Si4q9; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229606AbjDKTEd (ORCPT + 99 others); Tue, 11 Apr 2023 15:04:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbjDKTEa (ORCPT ); Tue, 11 Apr 2023 15:04:30 -0400 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 11FB03C31 for ; Tue, 11 Apr 2023 12:03:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681239822; 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=RxO1n2PWxys5TFVibtUzDwp6ndZRuDOsr/RkUx0+dQ0=; b=EM5Si4q9R9MT9CWrN4WcDwXJO76dhE0VoS4Tt5/UaXKROA3R+bXQ7pjhy+3/ReXq/nqryA fmoVV+QDMzDQyWYcuImasM+RKXQjZZjr0koXnZKpeSNnDIz2omWKNW6HhsQb3yr9g/AyV+ YCAH0goFFMKEVtYwKJHVqn6auzWNxCY= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-503-48DQgEx5PAGzmOGZmvqz2w-1; Tue, 11 Apr 2023 15:03:41 -0400 X-MC-Unique: 48DQgEx5PAGzmOGZmvqz2w-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-5eee59cadefso1013446d6.1 for ; Tue, 11 Apr 2023 12:03:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681239820; x=1683831820; 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=RxO1n2PWxys5TFVibtUzDwp6ndZRuDOsr/RkUx0+dQ0=; b=jnYZnbPPMFFCHRGN41nPgwLbvj+Z0eDH+hiLu+1kBOFJuBJXcOydJHN1e68mrFH2lu nd73GmD87x1xqGwXbVWbO76QsIPYjCCtljumBtcSRV1VMjPYaS0VCClyD54UB/ljB+zH G3VMFfkbfxHaASa6yor0te8Eho6bseXQavxYdYCwCykMjxhsJ8FfG19PHezMQ4rEajBt Y5pNmKZiTxnwmCEtIUGrixJy6w7ynmLfA5jzt51URrt/CjWhxwrqrslS1PbszOUE9VFA au6Y8kRFZT3Z5khMo67xKN5S7FFki7yfd9PyjQCGoobzYFzZTzECWTnDaVEPbIkST1Lp Edfg== X-Gm-Message-State: AAQBX9eA8EpwuHaT5Toimdyc7tcCiUggD+Avw0xjN5SKTS9/QMb4Bim/ t7sh52gz2fk/hoLMy+6h3889U9hkNt641UZTKeeyHDJeHrXHBskFU+/Nq6DPMA+GCQfSbBwuIZg ODNBEaWd/FLOa/7lSJs9qR+Yx X-Received: by 2002:a05:6214:3016:b0:5df:55b5:b1a with SMTP id ke22-20020a056214301600b005df55b50b1amr294205qvb.4.1681239820615; Tue, 11 Apr 2023 12:03:40 -0700 (PDT) X-Received: by 2002:a05:6214:3016:b0:5df:55b5:b1a with SMTP id ke22-20020a056214301600b005df55b50b1amr294129qvb.4.1681239819739; Tue, 11 Apr 2023 12:03:39 -0700 (PDT) Received: from x1n (bras-base-aurron9127w-grc-40-70-52-229-124.dsl.bell.ca. [70.52.229.124]) by smtp.gmail.com with ESMTPSA id m14-20020a05621402ae00b005ea34e69373sm2334001qvv.37.2023.04.11.12.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 12:03:39 -0700 (PDT) Date: Tue, 11 Apr 2023 15:03:37 -0400 From: Peter Xu To: Mike Rapoport Cc: David Hildenbrand , Axel Rasmussen , Mike Kravetz , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Andrea Arcangeli , Leonardo Bras Soares Passos , Mike Rapoport , Nadav Amit Subject: Re: [PATCH 10/29] selftests/mm: Test UFFDIO_ZEROPAGE only when !hugetlb Message-ID: References: <20230330155707.3106228-1-peterx@redhat.com> <20230330160714.3106999-1-peterx@redhat.com> <20230331183726.GD12460@monkey> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Fri, Apr 07, 2023 at 12:42:29PM +0300, Mike Rapoport wrote: > > +/* > > + * Registers a range with MISSING mode only for zeropage test. Return true > > + * if UFFDIO_ZEROPAGE supported, false otherwise. Can't use uffd_register() > > + * because we want to detect .ioctls along the way. > > + */ > > +static bool > > +uffd_register_detect_zp(int uffd, void *addr, uint64_t len) > > Let's spell out 'zp' as zeropage, what do you say? Definitely can do. :) Thanks, -- Peter Xu