Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp769323iog; Mon, 13 Jun 2022 12:32:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbgWdUn4to2P42/hYYo8sVAiYapr+hNOMaZ5Qbm7lCtchB9tKfdtPAuocLuSCKZQK/yKDN X-Received: by 2002:a05:6402:cab:b0:42d:c842:8369 with SMTP id cn11-20020a0564020cab00b0042dc8428369mr1497241edb.181.1655148729798; Mon, 13 Jun 2022 12:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655148729; cv=none; d=google.com; s=arc-20160816; b=a8mt1KEsmwIll49+SSeir7h6huMbDCqym/g0iU2hEq5TlCgpuPokkiVjKtgIHTXgZ6 Fl8b7ABPApqIsRgI1dh4VWim3yvA5oHWZULUJbPp/HiGsdpUuozg7EJL7NdZBV9Lu6aj sXlc1eNLTefvRlFYXy4495Y0dugI6UmcsIoC3Ee5hsNjfuNpTZ6kU/Cz67Pw0viHIK82 ftBKe2HYTffSSYtTNCakQ0p8SbGjLVF14mTx02CzJimv3xzMQxNb4ckBMvhz3YRxqTw7 0X9x12+gB+gZJGIA4YHD0gyuaBJxEc6QbchYUPzVjHo4VITQ6RojMUVfigUrmDCjSSmy dVRA== 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:references:mime-version :message-id:in-reply-to:date:reply-to:dkim-signature; bh=TaFkEEYysed0ZjHcXQwF9Zz5rGBFJVxcbzKnAkD2bLE=; b=GHKKGsTCEbbqTN7YjNgloZ2H39jKgFd1ReDehZrznP84Swt/j8UsHLaDktmJJtZNi9 XTx0n0T33ds7FzDz1aEWgRulvbdjkiVJqACBd14Smg7oYYtoCgNqi6gVXxkuZXA/Pua6 1+AsfMTLbXtSZBP82UJI6XNUCAMEJnBguhd+WPnsnOOP9JTInDvtNw/fOdKLTh7o3I4u xwezLr6yGZEQ3SiCoCEH5P+xgU6jRgrKN+3EIDW0yBqjMOSuruG+RboAMNgI4xauYHry XhJ8loNqgixczX/j1vzS+sNyigbtej60qQWU9zHsSjiZ/oWhlVy5QYxsQomvpmncbXiA FYrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=BdyUyuAn; 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 11-20020a17090600cb00b006f4408bfffbsi7566517eji.779.2022.06.13.12.31.44; Mon, 13 Jun 2022 12:32:09 -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=BdyUyuAn; 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 S241392AbiFMTA5 (ORCPT + 99 others); Mon, 13 Jun 2022 15:00:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241927AbiFMTAV (ORCPT ); Mon, 13 Jun 2022 15:00:21 -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 408819969E for ; Mon, 13 Jun 2022 09:19:51 -0700 (PDT) Received: by mail-pl1-x649.google.com with SMTP id c10-20020a170903234a00b00168b5f7661bso3305593plh.6 for ; Mon, 13 Jun 2022 09:19:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=reply-to:date:in-reply-to:message-id:mime-version:references :subject:from:to:cc; bh=TaFkEEYysed0ZjHcXQwF9Zz5rGBFJVxcbzKnAkD2bLE=; b=BdyUyuAnmo6m8r1koxsfiOlsc5iBNlYySi3Y71QAYuY10veGPQMdUfMGhTfXRAD/jp SaugyRrAgCkYojFlfApB5/etcSDN8V3lOYeZbFaLsfFxquOJpuM7LqW1zpASrDwckUmz j/Z0XFHKi+sAiqu+/S7/+sdCMNhh5cz6On2RgMVy/6TzrZUxACT1WPSaoKueO5gbBNRL VT73mZjb7UOAZvch0+ny+tV5U7YNfmQEetOqihOu6tPpGN7lA/4r99PVFyO1KI8OSaLT 8ZVdkz4NMXRaVxReAL6jLw2J0RfErikAiKKvUu4FY26zUvFXv2WHfvkqNJhwloC9P74f QIKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:reply-to:date:in-reply-to:message-id :mime-version:references:subject:from:to:cc; bh=TaFkEEYysed0ZjHcXQwF9Zz5rGBFJVxcbzKnAkD2bLE=; b=12X6gJw7nd6nil3pP0cJWvS5q239WXTtCy2Cit7KSBS9ptTuJlC71SOvtnjFSA0T5W g1OGXuZpC7UlSVr4HPDOimXQ3kOuTZsjMpETQ5O5oPJaPvMtQRhY0zNHKu7wdPSjLN+I Km4MHHCpfC/nVj8Fogjql9xo6LSia5qOO2cd3jylljhF5FUVABQEO9x5GP5bn72HHfMK RClDxTbpoo8Yls220z7oZh9xey2LzUoIZglOCJZ5DWjPdR86lV6OlndqHzvDKLZhbN5W 2B+7NbvZwcQQf1nBiAZmmNQLM1WrhCTAS+BPFYjvYfTD9UdGGTqFHRuciCeBoIbE26xu zWEQ== X-Gm-Message-State: AJIora+5hV8eKQt60u2UUSMSoCIaBhJORropVKGhk/DV9iznFNMVQB0S yjor14OOipH6Kz+zTNC52tHj2kXzf5I= X-Received: from seanjc.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:3e5]) (user=seanjc job=sendgmr) by 2002:a17:902:ead4:b0:161:c85a:8fff with SMTP id p20-20020a170902ead400b00161c85a8fffmr390270pld.97.1655137190747; Mon, 13 Jun 2022 09:19:50 -0700 (PDT) Reply-To: Sean Christopherson Date: Mon, 13 Jun 2022 16:19:41 +0000 In-Reply-To: <20220613161942.1586791-1-seanjc@google.com> Message-Id: <20220613161942.1586791-4-seanjc@google.com> Mime-Version: 1.0 References: <20220613161942.1586791-1-seanjc@google.com> X-Mailer: git-send-email 2.36.1.476.g0c4daa206d-goog Subject: [PATCH 3/4] KVM: selftests: Drop a duplicate TEST_ASSERT() in vm_nr_pages_required() From: Sean Christopherson To: Paolo Bonzini Cc: Andrew Jones , kvm@vger.kernel.org, linux-kernel@vger.kernel.org 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 Remove a duplicate TEST_ASSERT() on the number of runnable vCPUs in vm_nr_pages_required() that snuck in during a rebase gone bad. Reported-by: Andrew Jones Fixes: 6e1d13bf3815 ("KVM: selftests: Move per-VM/per-vCPU nr pages calculation to __vm_create()") Signed-off-by: Sean Christopherson --- tools/testing/selftests/kvm/lib/kvm_util.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/testing/selftests/kvm/lib/kvm_util.c b/tools/testing/selftests/kvm/lib/kvm_util.c index 0c550fb0dab2..bceb668f2627 100644 --- a/tools/testing/selftests/kvm/lib/kvm_util.c +++ b/tools/testing/selftests/kvm/lib/kvm_util.c @@ -284,10 +284,6 @@ static uint64_t vm_nr_pages_required(enum vm_guest_mode mode, */ nr_pages += (nr_pages + extra_mem_pages) / PTES_PER_MIN_PAGE * 2; - TEST_ASSERT(nr_runnable_vcpus <= kvm_check_cap(KVM_CAP_MAX_VCPUS), - "Host doesn't support %d vCPUs, max-vcpus = %d", - nr_runnable_vcpus, kvm_check_cap(KVM_CAP_MAX_VCPUS)); - return vm_adjust_num_guest_pages(mode, nr_pages); } -- 2.36.1.476.g0c4daa206d-goog