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 E1C8AC6FD1D for ; Fri, 17 Mar 2023 22:58:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229478AbjCQW6o (ORCPT ); Fri, 17 Mar 2023 18:58:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231163AbjCQW62 (ORCPT ); Fri, 17 Mar 2023 18:58:28 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEC71DCA78 for ; Fri, 17 Mar 2023 15:57:52 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-544570e6d82so61412787b3.23 for ; Fri, 17 Mar 2023 15:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679093857; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=1wbejF6WrsjCe87RU/Xd7e9XyaptMO+MaTPmYflDm1U=; b=bm5wqx0ban4lY8hIwbljSzbz8TfcNuxcuzBm1DdU6Vy8zgql+DvjtdZYHx3B+wGlYF WJCZowqfsDnfZ90nQCGu73e1bsJCtrtvYMwECfcEaAYAaNhbCTPmYIEfCpNHR6IApnak VmapZFDWlTySnymFyvnfx19NKfULC76Rsvln8pSyKQX27SrpM+z/DU2czDyKxVi+fLG1 AcVgBz1lNu+9EgSc1KjLJdmqaHq7NcCVNWSelzVrt7QKeuXItlqqmp+6fcDTB6qAjk6A bnHeNlVf8zkkowG1kMLI1AIuSgm9kIBJwBRg3jKovEEzajDYRyp65LGb0llsIWU3yq0D B+hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679093857; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1wbejF6WrsjCe87RU/Xd7e9XyaptMO+MaTPmYflDm1U=; b=dRALIrw2tLipReTcRtyW+GQ2+wmLDmmUoXkR4fDlFhs95TrFuHFDqLqCSOLUnz+u+T +lwImf91cn7+NO52BD1H7E8FD89rebrlNdhqdWtIgSyb8mD/bjnzRti0VL8wkzIsuhnj TArU32dfr9QPFkEK4qrbrO12mOvf3PNkosnw9j1/jjY4YbTM0WoiWrNsBBC+YdbBoHQf 5GRagiSBn+715WsVFhkH49ZmrU5wK5X7kePtoiRXW8sGflN4Jw+dQ5o91o6wCBf2qEPf ubjwF6iKk1x0li2tXJKJV336NINd7Jjt3nggG5RK1JKSapgSgVe6snZajUc0Ria1mxY2 XW6w== X-Gm-Message-State: AO0yUKVrniNsx8vuMtnDgwmyUSfqNEAEotyrdzr4W02jAZ4iXvJL8xBA +hbLM3Ra4k09GZPQbOPHhNd9py/dHbs= X-Google-Smtp-Source: AK7set8q9jbMPRYAhzwVa7g6qA/qgYzUtg6eOkwnDsctJFiRF82CyIrW3bd6I0gwZxJpOZqjrfNoDbV3TG4= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a81:431b:0:b0:544:94fe:4244 with SMTP id q27-20020a81431b000000b0054494fe4244mr5755178ywa.10.1679093857310; Fri, 17 Mar 2023 15:57:37 -0700 (PDT) Date: Fri, 17 Mar 2023 15:57:35 -0700 In-Reply-To: <20230211014626.3659152-1-vipinsh@google.com> Mime-Version: 1.0 References: <20230211014626.3659152-1-vipinsh@google.com> Message-ID: Subject: Re: [Patch v3 0/7] Optimize clear dirty log From: Sean Christopherson To: Vipin Sharma Cc: pbonzini@redhat.com, bgardon@google.com, dmatlack@google.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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 fixup David's various nits when applying. I'll also add a link in patch 2 to the discussion about why we determined that bypassing __tdp_mmu_set_spte() is safe; that's critical information that isn't captured in the changelog.