Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5701222rwb; Wed, 21 Sep 2022 11:07:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7pteGUA5F5O3f3iKDzqT5cT7qCeLNvh9Hak7zDVNJ38tS6yQqbSjSTlUEfvdat7GcK484A X-Received: by 2002:a05:6402:254f:b0:452:be91:c0d3 with SMTP id l15-20020a056402254f00b00452be91c0d3mr26194191edb.314.1663783637359; Wed, 21 Sep 2022 11:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663783637; cv=none; d=google.com; s=arc-20160816; b=oCzicjDOWqoOM47fFXFfWpGJW41rvxF2Y8rSs8xL0gFzWMvSOvoc5h0iXN5yr6jn6g 0F4yc1OpoQMeFD1mfh2oFPpT2YXMjGXkUXtTxKsLb4LqYk7+qpcKgteLiJpv2NDDJ1yI GuUIaD3n4XAusATgwJE+LqMos4+KWjeW/9nzPDXvaknGwXPDY1smqOC67ysa2JMKCNSk nsQUTUrHdm4tqUnHiPp+kqAD1M2rMpnS4UNgg0P8jnrhz7Pzu0tbUJvDV/obZTip1iPD JKHtjnFB0PYm2vIXyxXmJWY3FLc3j0tRywg00qpcXoYxR21NJSYtEPOvP0U+kJPYsbow n9kg== 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=6zseYLWfMQl699NSYlSkulwSYga25k2VOd8kmGGDZqA=; b=0BjC9ZACcuyYbVYsYSalTVz7c9hqJeDRwlcZASpmnLUYpa1b/xIAoiuAB62fUjtgcb 6EgmaZJT24bHJM3cf8cKam+3fg1X3ZgHwAzYPIiCUJgFe5aViA8jxh/vHHDWyB7m4ZhJ otJrxcZGuuOLsaVE1jFQUx8UZX52D5QNL4iOLwiyr6wGX57LbeVXuU7XiJMzPdyO3YR1 a/qH5bIQ3kJwqamJGby6yhdLTlMiDzaEfa5IinuruRsyxJiv8Jq4YpueiFbnvVS+YXpG mfs2wTXO9Q4cLwFMpnxJJkBMu4GgWhWx5poxxvbr51dV0lr/F6R9VIPMxXWHmto2+tR/ oJMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=HF1GO28Q; 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 i3-20020a170906a28300b0077f67871c33si2605740ejz.124.2022.09.21.11.06.51; Wed, 21 Sep 2022 11:07:17 -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=HF1GO28Q; 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 S229935AbiIURzV (ORCPT + 99 others); Wed, 21 Sep 2022 13:55:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbiIURzT (ORCPT ); Wed, 21 Sep 2022 13:55:19 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21FF1578A0 for ; Wed, 21 Sep 2022 10:55:19 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id q15-20020a17090a304f00b002002ac83485so6762964pjl.0 for ; Wed, 21 Sep 2022 10:55:19 -0700 (PDT) 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; bh=6zseYLWfMQl699NSYlSkulwSYga25k2VOd8kmGGDZqA=; b=HF1GO28QnOsgPyjvlZwBtrm8nRj4a37NZoVS5Xs0nafeLYz+REY6KzOMOqDMAc6b80 dG6jVcE6eQEy5LLzzS2cWLwJkcassxeNo4cZPl5DUBJOj/T0/NtYkygSddZwMxt+ZYlT POUtRHieTNX1aRGfes8sNIWUztwqlANp9phuRT/KPG+LfmT4VFuPHLToJtlx8W5Dr3m6 cAFui5GQyLeZf2ewtNQLjaBQBmSFgn+lQamAp2KtpFI0x0Tr50LCAgL839BhOcMb1Rs3 1ttPdFRElrOpKnKxF05T/ZsA4xD/4kfEIlCq7eqiTQbFx/mDTMwrbOF2TxB25WQcjwRL X02w== 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; bh=6zseYLWfMQl699NSYlSkulwSYga25k2VOd8kmGGDZqA=; b=ibF/8a/wb85awM9xA5OrbU+bAMVBkuDhwB+qfmKC65Nr6tHODB6qco7qEdydCdz+uh UotYx4xuMEgmkLQptEHwVt9CBnhfjbZV5alX0GBINfpTSpSeALg86O8Z2/uSQGD/ywAx itGyiRKKTUhO6F8II+HUXMRKo+rhH7KT7IdC6WkD35pPf+xRSUbMu/bieRyK7bNDy0iU 6eqhYkx6HWdm6lLTnBOZ6In6dQpuTho0x0ONE99oEGkyDq7NCV+ew3DU+zxOigPf9X4V JYzbkiPHXOCKRq9r5cwDPoJ3XvXJ4JNpTRapmNcZU0RZpBzg+AOomMaKIEzcOLGzJAdV iijw== X-Gm-Message-State: ACrzQf3QvR3tlZyubOmx93vwQjZsRN2qbgyRTAoyITmIpvQit8MLyqUw Cd1Pe2H31lzAt38mOowyMsCZyg== X-Received: by 2002:a17:90a:e7c5:b0:200:ab1a:f32 with SMTP id kb5-20020a17090ae7c500b00200ab1a0f32mr10602649pjb.100.1663782918084; Wed, 21 Sep 2022 10:55:18 -0700 (PDT) Received: from google.com (223.103.125.34.bc.googleusercontent.com. [34.125.103.223]) by smtp.gmail.com with ESMTPSA id l25-20020a635b59000000b0043395af24f6sm2221034pgm.25.2022.09.21.10.55.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 10:55:17 -0700 (PDT) Date: Wed, 21 Sep 2022 10:55:13 -0700 From: David Matlack To: Vipin Sharma Cc: seanjc@google.com, pbonzini@redhat.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/4] KVM: selftests: Explicitly set variables based on options in dirty_log_perf_test Message-ID: References: <20220826184500.1940077-1-vipinsh@google.com> <20220826184500.1940077-2-vipinsh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, Aug 26, 2022 at 02:12:49PM -0700, Vipin Sharma wrote: > On Fri, Aug 26, 2022 at 11:45 AM Vipin Sharma wrote: > > > > Variable set via -g are also indirectly set by -e option by omitting > > break statement. Set them explicitly so that movement of switch-case > > statements does not unintentionally break features. > > > > No functional change intended. > > > > Signed-off-by: Vipin Sharma > > --- > > tools/testing/selftests/kvm/dirty_log_perf_test.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/tools/testing/selftests/kvm/dirty_log_perf_test.c b/tools/testing/selftests/kvm/dirty_log_perf_test.c > > index f99e39a672d3..a03db7f9f4c0 100644 > > --- a/tools/testing/selftests/kvm/dirty_log_perf_test.c > > +++ b/tools/testing/selftests/kvm/dirty_log_perf_test.c > > @@ -411,6 +411,8 @@ int main(int argc, char *argv[]) > > case 'e': > > /* 'e' is for evil. */ > > run_vcpus_while_disabling_dirty_logging = true; > > + dirty_log_manual_caps = 0; > > + break; > > @Sean, I hope you intentionally didn't write a break between -e and -g > when you created the patch and it is not just a missed thing :) I'm pretty sure the missing break here is by accident. If it was on purpose I would expect Sean (especially) to have called it out the subtle change in the commit message and probably add a comment here. Also I can't think of any reason why run_vcpus_while_disabling_dirty_logging=true would require dirty_log_manual_caps=0. Can you change this patch to just add a break and add a fixes tag to the commit message? Fixes: cfe12e64b065 ("KVM: selftests: Add an option to run vCPUs while disabling dirty logging") > > > > case 'g': > > dirty_log_manual_caps = 0; > > break; > > -- > > 2.37.2.672.g94769d06f0-goog > >