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 A4C00C4332F for ; Wed, 2 Nov 2022 23:40:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231602AbiKBXkM (ORCPT ); Wed, 2 Nov 2022 19:40:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231490AbiKBXjy (ORCPT ); Wed, 2 Nov 2022 19:39:54 -0400 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F41C9101D5 for ; Wed, 2 Nov 2022 16:32:45 -0700 (PDT) Received: by mail-pj1-f74.google.com with SMTP id n4-20020a17090a2fc400b002132adb9485so101404pjm.0 for ; Wed, 02 Nov 2022 16:32: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:subject:date:message-id:reply-to; bh=6wM4Oy0nUMfbEGH4TnyyZoGSCQjO5BHCNka2AusodrI=; b=aaWoxlOtXkyHzeY2UI1c5F/unLAqVQbf9+TC5N/PBWZcNjul/X5RFIAFzlGtRKcWs4 OgpA6zR7t7i8bZhrEWaXGoRjthT+d7NlbbV8pts9ahkg/WJdtUj2WxbzjOrh3MtpQG+j I3YxOyGr8bB0FnEUdY7hJgvBFP5IUCdQXpvcoGcm13WAlHgXuMWQ6OfZg8we6s31U+ss Nq0gb/FWFJgrxu4Avp0ZRyDh8zt3rkVuYn+/b8lHOzIGWYEYaFiP4tYRr2F3njnNm4Ju pbJsgauh5cZJbDLA2GdVFxGKwOJUHopQxVNefGf9xBQweKlu6TwzVCDAV9rq30AzD+dg s8zw== 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:subject:date:message-id:reply-to; bh=6wM4Oy0nUMfbEGH4TnyyZoGSCQjO5BHCNka2AusodrI=; b=h9svOQfZhTwBt99O0rxBaWfcG42I/iH+lCBye66wN36Brel5Ftu59mrZp7LX/jeXTx FF4Dyd6DhQL3lQCsSZH0V+668+M0ss88BL12nt39DP60j4TQ73S6RANEm+p70rEjPWQ9 oYVMfOrhMrKn/Nc9Zuau0K5O7y/jUWCjA33eKYKqygiTJVGLpkq8mi9WSsmbLS9dTzih xlSHtLLA2QJI3eSeLueefyA65SylPuZs4hgQ42ma8XsEJZJ/FB98bPphNSDoJvCjkbSS nSARqEC45xH7FwyIDwZTgZ/3GJJpdGmXuPa7TZvrk+9xrffHu6eVmJqMD983OEakcwLr BLaQ== X-Gm-Message-State: ACrzQf0PCwPMKQjZvP+ezYEloGrJYijL/9MiZyShZXruos70LOUWWYqO QePq6dKW6tgOxEFo7jPV1HrpDUuNwLz+ X-Google-Smtp-Source: AMsMyM7KtspsKrWGWx2g82Q+EOYHX4ltcWQoGfJpypZF0UhQpS9wL+m7oeIkkgJ5cX1qlx693WhOKI6/DWtI X-Received: from vipin.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:479f]) (user=vipinsh job=sendgmr) by 2002:a17:90b:4b0e:b0:214:1328:e33a with SMTP id lx14-20020a17090b4b0e00b002141328e33amr10680462pjb.207.1667431662479; Wed, 02 Nov 2022 16:27:42 -0700 (PDT) Date: Wed, 2 Nov 2022 16:27:31 -0700 In-Reply-To: <20221102232737.1351745-1-vipinsh@google.com> Mime-Version: 1.0 References: <20221102232737.1351745-1-vipinsh@google.com> X-Mailer: git-send-email 2.38.1.273.g43a17bfeac-goog Message-ID: <20221102232737.1351745-2-vipinsh@google.com> Subject: [PATCH v8 1/7] KVM: selftests: Add missing break between -e and -g option in dirty_log_perf_test From: Vipin Sharma To: seanjc@google.com, pbonzini@redhat.com, dmatlack@google.com Cc: andrew.jones@linux.dev, wei.w.wang@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Vipin Sharma Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Passing -e option (Run VCPUs while dirty logging is being disabled) in dirty_log_perf_test also unintentionally enables -g (Do not enable KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2). Add break between two switch case logic. Fixes: cfe12e64b065 ("KVM: selftests: Add an option to run vCPUs while disabling dirty logging") Signed-off-by: Vipin Sharma Reviewed-by: Sean Christopherson --- tools/testing/selftests/kvm/dirty_log_perf_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/kvm/dirty_log_perf_test.c b/tools/testing/selftests/kvm/dirty_log_perf_test.c index f99e39a672d3..56e08da3a87f 100644 --- a/tools/testing/selftests/kvm/dirty_log_perf_test.c +++ b/tools/testing/selftests/kvm/dirty_log_perf_test.c @@ -411,6 +411,7 @@ int main(int argc, char *argv[]) case 'e': /* 'e' is for evil. */ run_vcpus_while_disabling_dirty_logging = true; + break; case 'g': dirty_log_manual_caps = 0; break; -- 2.38.1.273.g43a17bfeac-goog