[v7,1/5] KVM: selftests: Add missing break between -e and -g option in dirty_log_perf_test
Message ID | 20221031173819.1035684-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 l7csp2448456wru; Mon, 31 Oct 2022 10:41:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66hjSYF9VVF4QRMRdtEeyw1JF9PsjpPLdbii/zc6h07YumFDYB3deafmj6X0dzOw6pRXuM X-Received: by 2002:a05:6a00:15c3:b0:56d:4ae4:e1e7 with SMTP id o3-20020a056a0015c300b0056d4ae4e1e7mr9216224pfu.23.1667238064891; Mon, 31 Oct 2022 10:41:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667238064; cv=none; d=google.com; s=arc-20160816; b=d5diEsj3uAB51IMF5IHjUzHf5vXoQ3RC7uNHAJo1mY1mahwFesUjyfDNNTNQra3b5d ECCaOjRSWFiLPDFV+WMiFK6Kq+FLhf8QAN6xE+/SXd8dFE8WlcS+HJKad+35cnE3K/FI vWYQktjuTn3VnxJeo2E/W9lXXNHV6mnEdupvRoJNKtqIoliLEfM8jvfwMWPtoo2gRXDu tKlNlbVF5gAQcY5lY8RiqpTsKRETKHC/euXnKFtyWZoY/2GtSiKcXGPo5EWxX54Zix4R MUuxsFRyLdCdRf+8FZVysHzu7KghwoYdpB9Zk1CpRBoze5IXJ8EClESUjieacX4CJn3B ydhQ== 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=7Jpq5jfGphmK9drIKQAVv+M/tTwLOmGvjLrn0VHckf8=; b=CzGPAGQs/BHUlT5NpIeLNQgo1fuLIS3lkHJ4DsIEivfgUepjmSzgwce6Tgn5LoxyhU Im0Lr+ZAYs5VFwqEc4AnDhwFv69mSJUAmr5g2l9Xb+nPN+yECezfnoE2XUsa46q2FMFR g82T8vTM731WTutU0SCsnRpK8ze3fDZyQtqQ64XQvTNvICtGDVHDXU7VWlDOu/h6gzwT 1HF+dayooBVZTabzDVjvu+Z7sJTU6yU6J093uGQUrTXC5o19mBfj5GOrsb46ZESgSdxW RQHNXOgLcxDCqB+Hwo9qz/a9vWlP5QIqpHrziEQQ3eqFapXmxaTiy10kSQlW51s+gspd Ei3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=YPLI9uJ3; 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 t1-20020a63b241000000b0046f41385afdsi8909338pgo.118.2022.10.31.10.40.36; Mon, 31 Oct 2022 10:41:04 -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=YPLI9uJ3; 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 S230235AbiJaRi3 (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Mon, 31 Oct 2022 13:38:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbiJaRiZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 31 Oct 2022 13:38:25 -0400 Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAAB7DF25 for <linux-kernel@vger.kernel.org>; Mon, 31 Oct 2022 10:38:24 -0700 (PDT) Received: by mail-pg1-x54a.google.com with SMTP id 125-20020a630283000000b0046e9babe7b3so6460860pgc.11 for <linux-kernel@vger.kernel.org>; Mon, 31 Oct 2022 10:38:24 -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=7Jpq5jfGphmK9drIKQAVv+M/tTwLOmGvjLrn0VHckf8=; b=YPLI9uJ3gSAKoLonts19Zv0B3kfm5cmzTD+PCI18Cp7fF5belHNpwoGaTT6nXkHdnK d/tu7JUiJeqq3rpVel3sasfOjdiLHnp7dUeyP3NTsEPAnPOSrpvbfxPYRbRk4opBZzKk io8XUAK8Cyglj2sXdKPXkG+yQVH5kmeWwO8mxtsrOssf+jejlgb2L9srXRBlqbg+0MtV F9U/lQAqTm2AkgkYBvp0Nqg4Exsu+LltlQ7iLoe0+JEbRwDxh/TFotkO26MetrL7BCa+ NNEfZ52iYcSgBi982Ewr3NnnA6Zjsc3ZxXrs8sciImoVivkngaa1PvPMcHszVdAn9YiZ rq0g== 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=7Jpq5jfGphmK9drIKQAVv+M/tTwLOmGvjLrn0VHckf8=; b=Xeoy0aF4WrZ89bw6XO9jrF97tO/h/BkZ9KwQgAji96E3qX6VKvmi9/kjwaZVV4aT4r LCyhXpX3YBUUHrE3UiDDyK/GANVnAlT4FHCv4vzGg2pDSIZFBQsxv3vE9oSU5EoP4J8f Ap0LAmr01SB75B5qCfyg8fRA070fOpaa6M5tM+25IgA/dThoBPjL141Q51tZa7Php60p FgraqOhiRWT165Vsbjr7BhQH8ppcu366nvU9Avn1s0wkhJPTTWUblWRzGawtcR9OFsbj RhuCji7LP206HJGrW94AEv4MMySGuo7jMqWYsV/4R9KjKMFjhduAQcpxyNPVRiTmF3yS 2eWg== X-Gm-Message-State: ACrzQf3E9IUozWnVCGNvA+XVSdMFNJDdXKYCoepk3gK2sjA4Fp37iYQP p4tnA/AgUABk/cd6p6QPGCoqeLITwHom X-Received: from vipin.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:479f]) (user=vipinsh job=sendgmr) by 2002:a17:902:ce0f:b0:187:640:42f with SMTP id k15-20020a170902ce0f00b001870640042fmr14060846plg.115.1667237904395; Mon, 31 Oct 2022 10:38:24 -0700 (PDT) Date: Mon, 31 Oct 2022 10:38:15 -0700 In-Reply-To: <20221031173819.1035684-1-vipinsh@google.com> Mime-Version: 1.0 References: <20221031173819.1035684-1-vipinsh@google.com> X-Mailer: git-send-email 2.38.1.273.g43a17bfeac-goog Message-ID: <20221031173819.1035684-2-vipinsh@google.com> Subject: [PATCH v7 1/5] 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=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: <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?1748225821175410576?= X-GMAIL-MSGID: =?utf-8?q?1748225821175410576?= |
Series |
dirty_log_perf_test vCPU pinning
|
|
Commit Message
Vipin Sharma
Oct. 31, 2022, 5:38 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>
---
tools/testing/selftests/kvm/dirty_log_perf_test.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Mon, Oct 31, 2022, Vipin Sharma wrote: > 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>
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;