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 2EBBDC74A5B for ; Fri, 17 Mar 2023 23:52:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229560AbjCQXwQ (ORCPT ); Fri, 17 Mar 2023 19:52:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbjCQXwN (ORCPT ); Fri, 17 Mar 2023 19:52:13 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51406497FF for ; Fri, 17 Mar 2023 16:52:02 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id r1so7438271ybu.5 for ; Fri, 17 Mar 2023 16:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679097121; 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=eQMD/29uw8RUz0fNzK2trwLryR+NGIrIQSt625LLiR4=; b=TS6enXcAOm38L7QvT+K/jT3x16hmeT+y+4kagaEDckdmpRvnOeAsbBSaoxSgJNrMG9 hSDoMP05VscGo4LbTYECC5AxoNaVqnnTnHAs/iWsoKurGamEavoev9wvQFzc5ajoajeu DYLeXS21zZR/OdOOW6HSDWhDHkm0jkfxTu0QoA9CnKv9CUV4sjRRndhJhVmkIO1l+wiO zZFvqMqBj5ylb0eGeV9fiDugpe8fq+UHlDR1JCe/RfaO4Rm5ay4W9VOz4jkfVIkbHLVr BGzYpR9cO24ehDUEE1+X4CiHtCVUjxXxZNeZLMWIFUHSXrcjpQHtzE7T714PnT4ICFBm QduA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679097121; 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=eQMD/29uw8RUz0fNzK2trwLryR+NGIrIQSt625LLiR4=; b=ixnszNqEFJeI8TMHCP7ZlQt0fqAOvUD/fFdZ1WSHAv56QsJG2ALblYe2DN+I9+9b0I zMjIq3pwzOy1fv7l0j5KmAJ6+h1Rh37iREmvIMBze9+KPAceyIVaSWCLCnqoAb2WmHBP aVENZOmEHzrWeBNd9xlFFfySNgj9BwbS7dXOyy04Q5Ld2RJWH3dkmbEGKW95L37RD44Q qg7UP+t23mUwgW9BcyTOKmj2g4ndSbAsGwfwsV/SFZQNCL8S3JZ93GXrw86RhZtCjrvh cf6hzfVHr6Y4+9z/N7Z6o+sbBnpo8qw2RCEeaIEkGMzvYl4AuX20SvE8KXZ8nig7GMfZ szaA== X-Gm-Message-State: AO0yUKV9QF6CA3NE3MkWz4s8pk5l0AL2zcCPDiYNYa7XlkzlVGOgjvva gGqnKFPGhMO4V3/QHzZoLyOa77+D8emqRc/o3ylGnQ== X-Google-Smtp-Source: AK7set/6K0VHPQzMrr66R5AXYXA3YJNzCDyiJiEWzDsvRDdmZ6ptCgflUF6JxqibsYXvfUTKehd9lDdnM5vVfI53kFo= X-Received: by 2002:a5b:181:0:b0:acd:7374:f15b with SMTP id r1-20020a5b0181000000b00acd7374f15bmr187259ybl.13.1679097121136; Fri, 17 Mar 2023 16:52:01 -0700 (PDT) MIME-Version: 1.0 References: <20230211014626.3659152-1-vipinsh@google.com> In-Reply-To: From: Vipin Sharma Date: Fri, 17 Mar 2023 16:51:25 -0700 Message-ID: Subject: Re: [Patch v3 0/7] Optimize clear dirty log To: Sean Christopherson Cc: pbonzini@redhat.com, bgardon@google.com, dmatlack@google.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 17, 2023 at 3:57=E2=80=AFPM Sean Christopherson wrote: > > On Fri, Feb 10, 2023, Vipin Sharma wrote: > > This patch series has optimized control flow of clearing dirty log and > > improved its performance by ~40% (2% more than v2). > > > > It also got rid of many variants of the handle_changed_spte family of > > functions and converged logic to one handle_changed_spte() function. It > > also remove tdp_mmu_set_spte_no_[acc_track|dirty_log] and various > > booleans for controlling them. > > > > v3: > > - Tried to do better job at writing commit messages. > > LOL, that's the spirit! > > Did a cursory glance, looks good. I'll do a more thorough pass next week= and get > it queued up if all goes well. No need for a v4 at this point, I'll fixu= p David's > various nits when applying. I'll also add a link in patch 2 to the discu= ssion Yeah, he is too demanding! :p > about why we determined that bypassing __tdp_mmu_set_spte() is safe; that= 's critical > information that isn't captured in the changelog. Thanks!