[v9,1/7] KVM: selftests: Add missing break between -e and -g option in dirty_log_perf_test
Message ID | 20221103191719.1559407-2-vipinsh@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp721262wru; Thu, 3 Nov 2022 12:20:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5DWhP/FZgj2l39Q9PDCUoPb/DajRCStJBTCfTvmHcXVok8ji2GMp7KM84GaBn28ySsNVpy X-Received: by 2002:a17:907:2d2c:b0:78d:d289:7efd with SMTP id gs44-20020a1709072d2c00b0078dd2897efdmr31459836ejc.166.1667503236046; Thu, 03 Nov 2022 12:20:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667503236; cv=none; d=google.com; s=arc-20160816; b=MLry/jWZG//WtkkRzyIi6fmq5xYEjCmNEHh8wN/baIhml+ohoj8QwhteecYQ+oq9rK qsxFOcKzCHhp9IU4TrEE8V6thxYHo6KmXOBe5LA82Tu+bgfzbPbMSXJW2BGobwf4iIc1 GMfXmfG8PeL/esjHQbQyC/H1r3EOSAxRrlEOWOv4+kzE4yukVyEn2YU/FyJm9IIrRjJ+ pU3xtR+5htIVLYQWAQkwzyx5Wp5s+/uazCXajSpgWYNBaIpSUB2j2bFWUm/2M52gyv2o mhvOYFtaD65C9Is/z6a25l+IdKJ4PMvm6DCmCtm9ctfpA70lKSeYgtOqu1zJs7AxGIau hWvw== 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=nVq0NRECYhHBmuOUXw4sr1sSZUg51GxJ+DVIz9UL7cI=; b=AJ9QEAc22yApykJKBDsTJgjEHm2GJtulz8zDq1Un1adQNBS8lFpOWy5xIgoYCTFkTU v5XChw10fcXrKE43fXSESqU8YXEu+dB/MexM8B5HuKXDCbInjv6RH8qZQiR6smwRsFMH M5LT9PAzhvMXp3MsO/xp3R867TFdj0rznwoYo3PJ3vrJS0PNiqQtIkc6ImKtBne8CIS+ Fhw746+kBDz857s0G/SOj8E3jUwTMisoeC17n7LTUD9YEvmmDXFRnCD6mhUSykR6D8vs o/dRWM5gjDfKtmFbS4eNg/aZKS/HBmroVLWHZMdmksILVVsiqoNjiXazw06+Izndf9iL k7Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="PZBhgqs/"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a056402270a00b00462df2b0639si2521463edd.335.2022.11.03.12.20.12; Thu, 03 Nov 2022 12:20:36 -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="PZBhgqs/"; 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 S231802AbiKCTTr (ORCPT <rfc822;yves.mi.zy@gmail.com> + 99 others); Thu, 3 Nov 2022 15:19:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231752AbiKCTT3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 3 Nov 2022 15:19:29 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA29B220C5 for <linux-kernel@vger.kernel.org>; Thu, 3 Nov 2022 12:17:45 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id ci1-20020a17090afc8100b00212e5b4c3afso1209244pjb.3 for <linux-kernel@vger.kernel.org>; Thu, 03 Nov 2022 12:17: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=nVq0NRECYhHBmuOUXw4sr1sSZUg51GxJ+DVIz9UL7cI=; b=PZBhgqs/avqYfO2rxz/ROGVj8Yf+KVawDpJUSJWaYxMktMhLq80Qa6x+fL1oLdyOBn tijGtDrD75BP0KkYOQqFKG1GufslY1KcExKxD1UiKYU16dRDVk+WHjG/0rrHXAXIyNTE y8YRbIBNVTRJk/+ZnwYD7CYJSiGuRjk8BwO1xvfSuBZe+CNMgsxAxNPdidLb9aDbbDMb 3BmUEyQle9dxXlIQU4OlA+xgZqhDOGngQk1DrUrwLibBdKcS562IZuqoEUDyDTP327cv dZewcU9FPD0BbPJpND111+HBDtDd0dZrkwPh9yKoWclCUIIvLcrJj8s4fc31yZu5ASUz hlkg== 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=nVq0NRECYhHBmuOUXw4sr1sSZUg51GxJ+DVIz9UL7cI=; b=T8JJvs5jygFhXicLnPW/9t7obPP0SpO6YmtYFgc4JC5JTr52XgiYTYLgOs/ybzXVhv tc+6L97lgWodIOvM62fj0YBhynWZJ652FDg8v1GQ+cG7xpE9qoETnnI9nQzrDzzYym+E Nl1awQRmc+XE0N6dCihjgXERBQbJeRTb3zmIz088ZULHiDJCvv41rSm6cVRvQbuHo8Ez SFrS1LI428it6Qwya5RcdTZ29f+4iybov2ebnAJd1/uk7aQg/wjZTmHWY/mwLotsZCIW 2vw4soSpTtGJE1L5zpYxnWd8pyZ4EhBWOLUJC67ClJTRxQMv4yz/HNkpmu4bEUJK14S/ UdwA== X-Gm-Message-State: ACrzQf0jcku9iL2b/eZEo7o2/phMvqaBYXnEZNXe4AApRARCC+Pi1KSv WDWCNdTMAHT3RFtSQFPopkVbltgfNUZ9 X-Received: from vipin.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:479f]) (user=vipinsh job=sendgmr) by 2002:a17:903:185:b0:187:25bf:dbe with SMTP id z5-20020a170903018500b0018725bf0dbemr21275767plg.74.1667503047254; Thu, 03 Nov 2022 12:17:27 -0700 (PDT) Date: Thu, 3 Nov 2022 12:17:13 -0700 In-Reply-To: <20221103191719.1559407-1-vipinsh@google.com> Mime-Version: 1.0 References: <20221103191719.1559407-1-vipinsh@google.com> X-Mailer: git-send-email 2.38.1.273.g43a17bfeac-goog Message-ID: <20221103191719.1559407-2-vipinsh@google.com> Subject: [PATCH v9 1/7] KVM: selftests: Add missing break between -e and -g option in dirty_log_perf_test From: Vipin Sharma <vipinsh@google.com> 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 <vipinsh@google.com> 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,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748503873205457319?= X-GMAIL-MSGID: =?utf-8?q?1748503873205457319?= |
Series |
dirty_log_perf_test vCPU pinning
|
|
Commit Message
Vipin Sharma
Nov. 3, 2022, 7:17 p.m. UTC
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 <vipinsh@google.com> Reviewed-by: Sean Christopherson <seanjc@google.com> --- 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;