From mboxrd@z Thu Jan 1 00:00:00 1970 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 C1A3BC636D6 for ; Wed, 22 Feb 2023 19:32:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232107AbjBVTb7 (ORCPT ); Wed, 22 Feb 2023 14:31:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230434AbjBVTb5 (ORCPT ); Wed, 22 Feb 2023 14:31:57 -0500 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF52A42BFF for ; Wed, 22 Feb 2023 11:31:20 -0800 (PST) Received: by mail-pf1-x42d.google.com with SMTP id fd25so4314566pfb.1 for ; Wed, 22 Feb 2023 11:31:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=4sXW4q9EpLmN3ULY3ncrUN7CkV+kTTsNZ6c+/DibckI=; b=mH5jupgb0dU5Lzc0M29Umy6r1ACP4DRwXeP/4yF6Jq0tfVd7j5v6LPSNPjdt8inr4K BWEZb7gFLlx5Yp+9K2BVzU4wE/Qt7c2SY+Cx4XCVT+xnDNatFQzOnpHQGSYr/+wfgmfy za0f7NF+CJq6YlgZn1cv9AFAaS4udNZuVMWBzRRFGsW1WElfHlfrNIckQhNSUkT+5KwU L3dG3OAciVgQ3JYh7l86OMCfd7FIz9F0uG1ZX+1ICtaxIAxr61ZVEcdnRaMPZOtDDuE4 sQZChY0qPhsz73Bkeo6OcHye3RKXRD46nbIdYh9eLOasKqCgZ7YK9JgfEGZMnzDMMEC/ eFtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=4sXW4q9EpLmN3ULY3ncrUN7CkV+kTTsNZ6c+/DibckI=; b=y3HWIgIZIkGMjWT+Qe1yI5cqDdBagzN6qMPSP7ScRZ9XRqeg8iddCMsjFoEu2JOjoB qi1etQ9i2zSgwIruu92qTm6x3Wpr8h6nVSwZqkLWUWFO8j6lVCbMiMf4VRMubpJVF+NE MiTKvUaakcTgLf7P8DzAPIuw10ZelTKaWYQk1ib1vQxK77Gyw8hQstzu2pazIOHMnIp3 5v1t0qnmgb4443JqiU3TsNqqI1de+WoqdqA3QHJEmVEZlTUrQ5iQHiAQh1vSccyWnEKN fBAUIXb66XKB1nT+mlx/gMcgR/EC7qOgjacVijXq3ee4KWhbtJ2PRKzCHtWZ9fMEiTKB CBew== X-Gm-Message-State: AO0yUKWg+raorNym9zdKeRCpGX9mESSPwjxOKL/02PEP03O64dOzp8Rp F5/BlYnhpFcbls8CllMbFlQPMw== X-Google-Smtp-Source: AK7set84Ifyb7uDh1Kjx1qh6DhbE56VdeAITxITb2KO5Zwc5hRJuXbHRLoo+ei4a1YqmXOUpsubibA== X-Received: by 2002:a62:cf45:0:b0:5a8:ecb1:bf1 with SMTP id b66-20020a62cf45000000b005a8ecb10bf1mr6774200pfg.19.1677094279038; Wed, 22 Feb 2023 11:31:19 -0800 (PST) Received: from google.com (223.103.125.34.bc.googleusercontent.com. [34.125.103.223]) by smtp.gmail.com with ESMTPSA id x53-20020a056a000bf500b005a8c92f7c27sm5321528pfu.212.2023.02.22.11.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 11:31:17 -0800 (PST) Date: Wed, 22 Feb 2023 11:31:12 -0800 From: David Matlack To: Vipin Sharma Cc: seanjc@google.com, pbonzini@redhat.com, bgardon@google.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [Patch v3 5/7] KVM: x86/mmu: Remove "record_acc_track" in __tdp_mmu_set_spte() Message-ID: References: <20230211014626.3659152-1-vipinsh@google.com> <20230211014626.3659152-6-vipinsh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230211014626.3659152-6-vipinsh@google.com> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Fri, Feb 10, 2023 at 05:46:24PM -0800, Vipin Sharma wrote: > Remove bool parameter "record_acc_track" from __tdp_mmu_set_spte() and > refactor the code. This variable is always set to true by its caller. > > Remove single and double underscore prefix from tdp_mmu_set_spte() uber-nit: I find it helpful to use phrasing like "Opportunistically do X" for opportunistic cleanups that are separate from the primary change. Otherwise the commit message reads as if 2 totally independent changes are being made. > related APIs: > 1. Change __tdp_mmu_set_spte() to tdp_mmu_set_spte() > 2. Change _tdp_mmu_set_spte() to tdp_mmu_iter_set_spte() > > Signed-off-by: Vipin Sharma > --- Reviewed-by: David Matlack