Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4822027imw; Tue, 19 Jul 2022 14:03:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sUpiz1p0gkJAy8pFVKRUAU4rhy40i3SK7hkOJvI97wpxDcwusfvJ/U9OnAy95qFCZ+VgHm X-Received: by 2002:a17:907:2888:b0:72b:8f41:1405 with SMTP id em8-20020a170907288800b0072b8f411405mr31222228ejc.564.1658264592380; Tue, 19 Jul 2022 14:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658264592; cv=none; d=google.com; s=arc-20160816; b=HAt3xb3DmEggI45Nml4qyDlvRpvhTQDKuka18tQ6UoDRlfdCOQD3luwgkLoCVa1ZeS xkxPcPj/YAoA3J1Uq2Of6OQfKtRoBIba1/6QG/R0mbhzR4RfKzMd8PTgo2zlEUTpmwpp 54XrMblLJZe74TR2ZwOTH2qiRQAXfcI/j6NENwjPY8T7+Jgg8QJwXROJThdjfrxpz+eV QTDgV+gPlHv67Ek0O9OnAtmC38odyoDy7oChg1MSTeUA2iXGw+ONxO0gubn2Jl7aPp5V J/OclBxxoo6JDLsry2Q80PsfcXcqOcul9o6WZu/YCf98g8vifooEY32BB/iG6oytcunJ Hjdw== 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=Y5fwh5XQ1eQ19E2Z8DxxEP57ot41iP+HZxIKEkeAu7k=; b=RTCLPp2gpkgQIhOwgxdtRnWd/H0xNobI1oX5a6m2PljfodqeLD2kZukWOO4Kuf6+qE QdjRezidHtTPS/Y+hj6CDuC0VYoPt2Y+gPGdPjpuqOh0GvxvyRilACAO21RynR30ZsOI zUtpbyfl1awK9Z7Fs379SFMLHFI4iI3M/kSMWxKuWFLC4LG3h9tEttb4P0k3FCa1dgpB xW5D6x0kKMSX1vLfmGNYyCIUfVz0wQ4WJeRVZH74kpbJmbM+7r0/k682YnVB76gcV9Bm NveJnpjIg+7u03aCNWg88Fe8f9Vmanczdie3drLzjzhCynNUg02YhWhGln9Ne9JWldFV pGGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Gg1iGwaF; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd9-20020a1709069b8900b0072ee40a2056si20900211ejc.862.2022.07.19.14.02.47; Tue, 19 Jul 2022 14:03:12 -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=@google.com header.s=20210112 header.b=Gg1iGwaF; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240176AbiGSUkr (ORCPT + 99 others); Tue, 19 Jul 2022 16:40:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239975AbiGSUkq (ORCPT ); Tue, 19 Jul 2022 16:40:46 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A85C5286EE for ; Tue, 19 Jul 2022 13:40:45 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id o18so1692584pjs.2 for ; Tue, 19 Jul 2022 13:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Y5fwh5XQ1eQ19E2Z8DxxEP57ot41iP+HZxIKEkeAu7k=; b=Gg1iGwaFzeNXWLYH3o7HDYdbOCx4YcdI19btWPVG9za5H/8vIXfD59H2snLGuj7tBm X8zOltVQGm+kXZztqubzj8hap2L1wiCMWZb8ON1NV34KFIUtowCVaQNU4YjYJmEqoxIc GwluNfF4a73tE0YFGBqyP6CGaP/l8PH30NjqTNTcixgexwrhhC4RYmnUWUvabYZsnimL 5nTjBYctDEN1kG7Dk9FF+zi+0g0XgXzqJCYwfXLuktyljPrNOXldpD4XrI7skoZGpbHq WthL/PFwmSwXuilw7qb16uw6vKakYq578EXI4hl36UikZVmL4lrLLSYHntEt0fAoI01A tv/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Y5fwh5XQ1eQ19E2Z8DxxEP57ot41iP+HZxIKEkeAu7k=; b=gPCwzk79A2fOvt1WktQD09g/0qoZMmplUiyc9phjpo3Flzse2/JmDL9ubjfscLq+2c 5ShSaX6aSj4rSwigP3RYqtH0gyaS67FWgt6Wi1paR/0d4fEHY+nJeofbJPpP11zYKyur ER8WRdq2OgmsngsidLX0KDszwAjFzNjWlMIAVZWdTYD5fqtQk3J8mBbxic0Tka38crjc ZIzxXlrVQYBHbtNJd9g/9CO/0qkLfdwdOsgWmIc4o8rLzQ3OCjRrSHzQ8ucjgdg6Ci2u Ce3cw2be+XMYzLP2+gRwH8nRZv3H+ivg1m8lYqofgqs4e2KCgrfzW7NFTk7Jpeb4tKYA jViA== X-Gm-Message-State: AJIora+66wPnor0tvVCSWiORRQcdgGrsShvoRlrWAlbJuLFv17JroBKs HurP+Z+V0QltWlfdatVKPsPE8GK62SX31A== X-Received: by 2002:a17:90a:7409:b0:1ef:8e95:c861 with SMTP id a9-20020a17090a740900b001ef8e95c861mr1323452pjg.115.1658263244890; Tue, 19 Jul 2022 13:40:44 -0700 (PDT) Received: from google.com (123.65.230.35.bc.googleusercontent.com. [35.230.65.123]) by smtp.gmail.com with ESMTPSA id u1-20020a634701000000b004168945bdf4sm10156947pga.66.2022.07.19.13.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 13:40:44 -0700 (PDT) Date: Tue, 19 Jul 2022 20:40:40 +0000 From: Sean Christopherson To: Lai Jiangshan Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Vitaly Kuznetsov , Maxim Levitsky , Lai Jiangshan Subject: Re: [PATCH 11/12] KVM: X86/MMU: Remove mmu_pages_first() and mmu_pages_next() Message-ID: References: <20220605064342.309219-1-jiangshanlai@gmail.com> <20220605064342.309219-12-jiangshanlai@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220605064342.309219-12-jiangshanlai@gmail.com> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Sun, Jun 05, 2022, Lai Jiangshan wrote: > From: Lai Jiangshan > > Use i = 0 andd i++ instead. s/andd/and, but even better would be to write a full changelog. Drop mmu_pages_{next,first}() and open code their now trivial implementations in for_each_sp(), the sole caller.