Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp664059rwe; Fri, 26 Aug 2022 11:52:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR4BdznOOmY3MK5TJaD50ZsYyzjSTOG0WQhWBEKYp72iZjIDHm47hPDJP7fU90C0Q7IEWVxG X-Received: by 2002:a17:907:7610:b0:73d:afe8:9837 with SMTP id jx16-20020a170907761000b0073dafe89837mr6346387ejc.606.1661539935690; Fri, 26 Aug 2022 11:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661539935; cv=none; d=google.com; s=arc-20160816; b=rC91qFLmSyN/wKKOdLyAjvWGYb/urR6Zat8l4/i0zKeyUehVFpKl9L0FqwHnhAG4YL f4sTHDt0H5TMt1t8oxfJr6ApzUDtMU+GGlFtJ7jL+V3msX0ii5d+GtWwzjvE1wSvhAnF gRTRW/NkVzAUEAurV1eF3z6kCIoyNNb+C1HvcJkAGYUKtDpfouxZZkNwB0LTywXW4fRm Av/mhXU0Ik4uY+kaKNSt78Cmukhon5cEbGbRmDpf+2WwrLZgKdEK+POespQPDuJp+2BC K+46ip1Gn12IFgVrCS8oHNRIQdWx25DTOh/FP/q5zbLioqa8QAm7VIMFt55TeNmj2P87 YCpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=ybKUjgg6ch0GYw6EETwzWzCbbwkxj1dVORCeP7ssStQ=; b=oFzaJT5EfpdLp5DhYBlquYbueptunp92H1GmQwC2azMfS+tdQgCJYint6vGrylqb/5 gbdwlCu8AbjtuoPsvNusWS7QgOXZStmMLFt5J/x9+R0+HbKdvvhUhvROc3KZZKotDjoX vJ8yPD/ig0IuwZidmBls0qtawDAHD8DG+dAVIbCAPus0qttFCMhn/0AxoGjplWLOjdVh d3vngLvg6Yd3nFkqaxerAKVI4lGuviRmkF8Tl6DL27sBTfGRAfuXeAUtdUnHzkpD8ySc QpQVGi4jQCPBMawzwoP4pyV69QZyVUlecijFpLHhRmp4O3zSnLwBRU56nVvEu/bmSHEC tpog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bhdBMEDz; 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 i15-20020a0564020f0f00b00441464f8f24si1810804eda.293.2022.08.26.11.51.46; Fri, 26 Aug 2022 11:52:15 -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=bhdBMEDz; 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 S1345344AbiHZStT (ORCPT + 99 others); Fri, 26 Aug 2022 14:49:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345297AbiHZSsc (ORCPT ); Fri, 26 Aug 2022 14:48:32 -0400 Received: from mail-pl1-x649.google.com (mail-pl1-x649.google.com [IPv6:2607:f8b0:4864:20::649]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FF302CDD6 for ; Fri, 26 Aug 2022 11:45:45 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id m14-20020a170902db0e00b0017336b7f6b9so1552303plx.5 for ; Fri, 26 Aug 2022 11:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc; bh=ybKUjgg6ch0GYw6EETwzWzCbbwkxj1dVORCeP7ssStQ=; b=bhdBMEDzmkep7dAIdCuBqStPdNwlsq4AV2zkIiFFXbPVDlm46CrTBdBALQLBVEhgtc g35/2jujy3+oZbNteXe+2HRA3wsitfCWoc9f3qMlgOr7RRJm9UsRtFhalkjq/1eTp0Sc +d8CmSax4UEaJWeCXHtFN3FFcgx8GklKf9T9yRr8nuyCUUIcsYdan/duqFkIYd1Jh9LH xeL5hBxRXYML7vrQk3v8TsgvgUdmKvv/0h3sWnrFdrQXptMlCY/fWBHfK6YJoIOqbj6I vGpVaXscpsFrK3stnZj8usGtgx8LbqcIsTYK/iwFLeJAg7kIG3x3opMd3o88b3zpNROg wkEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc; bh=ybKUjgg6ch0GYw6EETwzWzCbbwkxj1dVORCeP7ssStQ=; b=zDT9A3sWV1F3HKaWl88huEiekd+RHFTiWh3IpciKTNKUbkYWD9nUpc+zFEVD3hUc9b RiztkLpKNIKBX2W0DpbNKI9T7o1g8SwcDzZ+Ej8aLjBPSylapzDlLTJYl45xV+D8kxCT qpfw6K0pVdrwumNpNEHSJ3+hi3r/Lts9eUaiwZIsw56GWlQ7WwsDBB9Nt9JA844hRT5z GlmoTQmIJwNayW0FPpcfkXT0Vna7nK9U0llIF0UOLZVjbchwm+bI65G4t7ymgyrhwrSq TrRZQgib8e47wy1p2GFelKGGKMxzGx4VGhRROpgB2z5E5OuWyKQl+JsmaWl3MtkJcBZ6 j8TQ== X-Gm-Message-State: ACgBeo1oJpSzq8YYr4V4Tj1jEyagMTc1VWiMqwXn1fFpZzFjXvjEEXBR taD+hhVs2sVJRB+4Ie9VYRi84GcX/H9R X-Received: from vipin.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:479f]) (user=vipinsh job=sendgmr) by 2002:aa7:9ac5:0:b0:537:e34f:c09c with SMTP id x5-20020aa79ac5000000b00537e34fc09cmr897487pfp.63.1661539545151; Fri, 26 Aug 2022 11:45:45 -0700 (PDT) Date: Fri, 26 Aug 2022 11:44:57 -0700 In-Reply-To: <20220826184500.1940077-1-vipinsh@google.com> Mime-Version: 1.0 References: <20220826184500.1940077-1-vipinsh@google.com> X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog Message-ID: <20220826184500.1940077-2-vipinsh@google.com> Subject: [PATCH v3 1/4] KVM: selftests: Explicitly set variables based on options in dirty_log_perf_test From: Vipin Sharma To: seanjc@google.com, dmatlack@google.com, pbonzini@redhat.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Vipin Sharma Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 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; case 'g': dirty_log_manual_caps = 0; break; -- 2.37.2.672.g94769d06f0-goog