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 E7742C38142 for ; Tue, 31 Jan 2023 16:57:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231267AbjAaQ5l (ORCPT ); Tue, 31 Jan 2023 11:57:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231630AbjAaQ5j (ORCPT ); Tue, 31 Jan 2023 11:57:39 -0500 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 AD4281ABE1 for ; Tue, 31 Jan 2023 08:57:36 -0800 (PST) Received: by mail-pj1-x1031.google.com with SMTP id t12-20020a17090aae0c00b00229f4cff534so1438393pjq.1 for ; Tue, 31 Jan 2023 08:57:36 -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=14imYuPslwfP5H8cnWfz8QxH/e2ZfUOvxpAJV9XqulA=; b=mbD8Ff7JFJvCngfid+7mhmM8jWXmseJodJRL3aN9D2ftSw6vHEbyNt9KP26vbi+2Z7 IszTrfBKtBtmHXivkz4ELycCORgcvwqgKottCllJdlVOXI5pTdFeWvNAQcocGsbYVduI bxETTRLlZZlXCh4/AIsMbHrhMX543OpIRuPWM95gXNuTpJEi0E2AqQZH1sOTfVV0lvSL 5lCcmeSJfPBRQDh7t+WEEsvKju1CdkljKvN5y7kEvzefYiIWaDox/L+qFfqujUGhh4wZ aPlXgWyiMi9HxrdPlp1OmybyPCefH+k5C7VDxt/pcn0sKNfBdEvDtbrUOGa+CQEFrBje DCDQ== 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=14imYuPslwfP5H8cnWfz8QxH/e2ZfUOvxpAJV9XqulA=; b=yCOCmf0C8fS6odbiWpb4z8sRl1nA5IYJER+XQg1bo4+rXyypQeMefxfGZN7QJrMe+U Y2nn75R1CwW5fd5OJhy92uuYtiYuoHVTBqX9UOBdbH/XdVAP9LjIP5omGzsrbi4BOfLl txNfLz9sfzO9LOPqeVcTbN3oiq9mrMELkofaZAPTUP6AxVFvYAtgYcoCNUJlKX3rIpFB 4NsCpt4c1aOr6qx4abUE3JkoKzqdb2Ou69ARi3ckvCkDCX/OKSxKV1SeBnWh1bTqUSOc 4Pa5DcijgD0yTg7SysgjNO77VSETM2PSvPfEIVi9pdA66FjCeoHIEHXV/QRkLHvLWi6F Yu4Q== X-Gm-Message-State: AO0yUKXQsOTSac4tjiKZ3OxQAxh1TNTcV/dsSA7nqhM806MjSdGTn92+ /bqh6v8IlbBvvLVPzY8itbw4cw== X-Google-Smtp-Source: AK7set9ZZA9mhdh+khjNhjPdLlljrgw4U2FCbVFuxT+Hoydlk0ZOoVDEHS+GEK+E04XKLE3NRzczTg== X-Received: by 2002:a17:902:e88b:b0:189:b910:c6d2 with SMTP id w11-20020a170902e88b00b00189b910c6d2mr4586plg.1.1675184256040; Tue, 31 Jan 2023 08:57:36 -0800 (PST) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id c15-20020a170902b68f00b0019678eb963fsm5268343pls.145.2023.01.31.08.57.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Jan 2023 08:57:35 -0800 (PST) Date: Tue, 31 Jan 2023 16:57:32 +0000 From: Sean Christopherson To: Vipin Sharma Cc: Ben Gardon , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Paolo Bonzini , Peter Xu , David Matlack , Ricardo Koller Subject: Re: [PATCH v4 0/2] selftests: KVM: Add a test for eager page splitting Message-ID: References: <20230125182311.2022303-1-bgardon@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 26, 2023, Vipin Sharma wrote: > On Wed, Jan 25, 2023 at 10:23 AM Ben Gardon wrote: > > > > David Matlack recently added a feature known as eager page splitting > > to x86 KVM. This feature improves vCPU performance during dirty > > logging because the splitting operation is moved out of the page > > fault path, avoiding EPT/NPT violations or allowing the vCPU threads > > to resolve the violation in the fast path. > > > > While this feature is a great performance improvement, it does not > > have adequate testing in KVM selftests. Add a test to provide coverage > > of eager page splitting. > > > > Patch 1 is a quick refactor to be able to re-use some code from > > dirty_log_perf_test. > > Patch 2 adds the actual test. > > > > V1->V2: > Links of previous versions of patches are helpful and avoid searching > if one wants to read previous discussions. +1 I also strongly prefer versioning to go from newest=>oldest instead of oldest=>newest, that way reviewers can quickly see the delta for _this_ version. It doesn't matter too much when the delta is small, but oldest=>newest gets _really_ annoying the longer the list gets. > > Run test in multiple modes, as suggested by David and Ricardo > > Cleanups from shameful copy-pasta, as suggested by David > > V2->V3: > > Removed copyright notice from the top of > > dirty_log_page_splitting.c > > Adopted ASSERT_EQ for test assertions > > Now skipping testing with MANUAL_PROTECT if unsupported > > V3->V4: > > Added the copyright notices back. Thanks Vipin for the right > > thing to do there. Please do _something_ to differentiate line items. I would also drop the tabs in favor of a single space or two so that you don't end up wrapping so much. E.g. (choose your preferred flavor of list item identifiers) V3->V4: - Added the copyright notices back. Thanks Vipin for the right thing to do there V2->V3: - Removed copyright notice from the top of dirty_log_page_splitting.c - Adopted ASSERT_EQ for test assertions - Now skipping testing with MANUAL_PROTECT if unsupported