From nobody Tue Apr 7 16:36:36 2026 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 C091CECAAD6 for ; Fri, 26 Aug 2022 18:49:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344321AbiHZStV (ORCPT ); Fri, 26 Aug 2022 14:49:21 -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-Google-Smtp-Source: AA6agR40C4F/nP90aB06KBuicRVB8I2AEbMJTiexNJ65vSnFWjzRvwni2isMe6nRr7wWNlzAB4A19RsNV660 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/test= ing/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 =3D true; + dirty_log_manual_caps =3D 0; + break; case 'g': dirty_log_manual_caps =3D 0; break; --=20 2.37.2.672.g94769d06f0-goog