Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6805807rwd; Tue, 6 Jun 2023 02:05:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7GpO+CEwAvAfD6fOa7dgVzHIuLy42tAkRKnvKA2IhtSgckAMNOlmAOjmSuHctIF7kSlzN2 X-Received: by 2002:a05:6a20:262a:b0:10e:e813:46ed with SMTP id i42-20020a056a20262a00b0010ee81346edmr1391043pze.43.1686042337293; Tue, 06 Jun 2023 02:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686042337; cv=none; d=google.com; s=arc-20160816; b=hqwMNysY2lz7hOzyL1j+WQNcjhq9OSQ/IjhdXya4u4ytGPsK6v+bWC5XupIQ0q4qRb 6tNmDdLUsBDKz8iAbLq5imGh1BmQwAS+eAjQN329vanXcJRA5johVOWQSZXKF0gjUWB2 sd/U6aoNZMSkTHq9ZK6NnwJKn0A60UMeWwMAPFhT+rVpNEdobfWmIDXOzxgXb6+VatM1 aAfZ40NPTk0OZH/bklbrxCR6l2VBVv7zUAAWhfgLAkUdbGp0lsT6uSjOFhfaE5oDwc9G fcf5cfJOFh975vaQKVVLlanob94UNKzM8Vm7HQe0juy+f6bXnvHzZfOrJllouhGtnm4d Oycg== 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=MUgPiGBwQlAcCgLbfd0t8e4x4pZWg4ajiskYowg5Ds0=; b=PxfpLv+udcKVDY7KSSD9C+ZC1TT1Ou/+0arf35Z+hcLC6cnIQPxEHtya0TGEQ3TpsK 0OgkuY5f6YRGnx3sLTeAI0rAsm7hi+bF9HaQLwKRJ1pwHnYCrnZC5IupAQPAD+pCKccn XGAUGEqj+4JMZ4udYmJuRd9bpbPRDLgpYro1yjqw6HuTT5dHR4i9x58JKHZNpcXr7CY2 fCwnB5kZRKynpqc6nVKGXqpvb49OvQuoBPlxu3axOUhgYoZv8CmYWbAQQTI7op8dsjHj suTd0SOjWmEEHKd2H0DyX6SQpQg8YvSzY49Lz70O5QJDotCO7cqVYG4lJCnyduCmbptt S3ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FtdmKnJT; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s15-20020a63af4f000000b005429415454bsi6795585pgo.377.2023.06.06.02.05.24; Tue, 06 Jun 2023 02:05:37 -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=@kernel.org header.s=k20201202 header.b=FtdmKnJT; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237079AbjFFIfq (ORCPT + 99 others); Tue, 6 Jun 2023 04:35:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237105AbjFFIeq (ORCPT ); Tue, 6 Jun 2023 04:34:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD991E68; Tue, 6 Jun 2023 01:34:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E5536612B8; Tue, 6 Jun 2023 08:34:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8EF9C4339B; Tue, 6 Jun 2023 08:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686040464; bh=IBidPa4YTyIF5atWcJcRcHpMTfYQvXCVIu3C1ReCwe8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FtdmKnJTbh0Th4rLzQVdzsyHI4nobuWxYORj11iWeWhGlMgvLcF7mRuKDFP/3SjWj E5Za6vAzdwMhU2Fl7W+Yd14DBVHDobnBWLRAmob+EsEIFyB5d80PGYjA3JIjQUBajb InBHOAv0cNMXRLtMH0xOOu4RRhUp3kA2MYZeOzlJOygnQC7JmPUZ5PDtqTXJfHRnP2 1AWELankUVH81S+2sDfidjLYiiUjlwt7jNuRuO9T4Eih88JdAH2XgOt0pTjw3cIR7b lmQCCanbigXkSgQ/AIlWp5wfiem/MA7KeHluPdl6au2zq8eAq591Yb0A87DeofIIFq Tf4L4UWn/XCBw== Date: Tue, 6 Jun 2023 16:34:15 +0800 From: Tzung-Bi Shih To: Yu Zhao Cc: Andrew Morton , Paolo Bonzini , Alistair Popple , Anup Patel , Ben Gardon , Borislav Petkov , Catalin Marinas , Chao Peng , Christophe Leroy , Dave Hansen , Fabiano Rosas , Gaosheng Cui , Gavin Shan , "H. Peter Anvin" , Ingo Molnar , James Morse , "Jason A. Donenfeld" , Jason Gunthorpe , Jonathan Corbet , Marc Zyngier , Masami Hiramatsu , Michael Ellerman , Michael Larabel , Mike Rapoport , Nicholas Piggin , Oliver Upton , Paul Mackerras , Peter Xu , Sean Christopherson , Steven Rostedt , Suzuki K Poulose , Thomas Gleixner , Thomas Huth , Will Deacon , Zenghui Yu , kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, linux-trace-kernel@vger.kernel.org, x86@kernel.org, linux-mm@google.com Subject: Re: [PATCH mm-unstable v2 01/10] mm/kvm: add mmu_notifier_ops->test_clear_young() Message-ID: References: <20230526234435.662652-1-yuzhao@google.com> <20230526234435.662652-2-yuzhao@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230526234435.662652-2-yuzhao@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Fri, May 26, 2023 at 05:44:26PM -0600, Yu Zhao wrote: > +/* > + * Architectures that implement kvm_arch_test_clear_young() should override > + * kvm_arch_has_test_clear_young(). > + * > + * kvm_arch_has_test_clear_young() is allowed to return false positive, i.e., it > + * can return true if kvm_arch_test_clear_young() is supported but disabled due > + * to some runtime constraint. In this case, kvm_arch_test_clear_young() should Is it a typo here? s/kvm_arch_test_clear_young/kvm_arch_has_test_clear_young/. > +static inline int mmu_notifier_clear_young(struct mm_struct *mm, > + unsigned long start, > + unsigned long end) > +{ > + return 0; > +} > + This looks irrelevant to the patch but a fix for commit 1d7715c676a1 ("mmu-notifier: add clear_young callback") instead.