Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5917112rwp; Mon, 17 Jul 2023 11:30:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlFctU09I9TO/Hd+ge0j7ecOiSTFvWh4v9S7DPwac8B9/VZ2tvX3wrei0ss8rSUm/2mpa5UH X-Received: by 2002:a05:6402:518f:b0:51e:4218:b91b with SMTP id q15-20020a056402518f00b0051e4218b91bmr11907475edd.1.1689618605253; Mon, 17 Jul 2023 11:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689618605; cv=none; d=google.com; s=arc-20160816; b=awEY4KDzCU/taeK7IeDRXtHjAOguDH9mb0nn2PLZy+xxF7Rw3StCTN1qoAn+epCPEz 8M8SIXbHir01gp77xL2vEUPdEaRKNahAg0B0PpnP+lpFYn1xWntUZZU7ArI9JCD6DcET z+KeTh36GSSZYTFNSm5+xcYmFTe/fk9zNXEMQkzNBJQGDhGQs7j5fLzrGtmuxI5BfiNq iCnKp5lhIll2NQRvWxPbRyEh+H3Jk3hlnniQNKJeP+lU++GSamHvo525EeOySgtU3R6f +rHMNNPhvU/CQvdlQeZtL5VIQya0Tw0i2bXk2374DP5UaVQm6ueYmzXadhNHYornbwn4 BPJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZmsQj7u2YQW2B8Y3a5yELsdK3XzWSJT1da7SH9dozjk=; fh=Ag0RbRk3LxdpQ9OdMLAf8hbnmFe6FOAHRGAvgVTwgEc=; b=RkfPgoFzESZRvvXD4R7c4YXohiPcZj4jfv4Oz7eWiEFbDTs+NTxoR4p9wpleEsg7jW CscSqwEFQHI8bKva2HI1vXEq4OB5mbFdMv3t8xxQRIkThNzGzFr2BPATBfa7Pj9kVfa9 SumD3F3e43hsaa7uUc83N1E3prc1wz/N1PreMx5t2qPV69qwOzVE4ugI3kaWBTg24RoQ ByozmabCf3x9SMol+anbIO59yZ8+KasDV4EnM3/Uhfbjma/gIVOgptM6zLmrDIOpjuVX BpS1RhQdM3OVAQEtF+0LhSlnqJUe4z5LjjWhSlsZ5aMiM0WnxsTTuCqe/MszqzcSvjoB zCyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fTtP2w2y; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020aa7cb52000000b0051e3371a8bbsi15640011edt.2.2023.07.17.11.29.40; Mon, 17 Jul 2023 11:30:05 -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=@kernel.org header.s=k20201202 header.b=fTtP2w2y; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230473AbjGQSYq (ORCPT + 99 others); Mon, 17 Jul 2023 14:24:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230147AbjGQSYM (ORCPT ); Mon, 17 Jul 2023 14:24:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A1A4171C; Mon, 17 Jul 2023 11:23:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EB57661218; Mon, 17 Jul 2023 18:23:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2113FC4167D; Mon, 17 Jul 2023 18:23:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689618220; bh=F9UudZvmwm9L+mKVQGqYbPDfGRLLSTExPAhqAyUKUiA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fTtP2w2ybqx7JRe2grIuHO/8iNwx6II/XytBgdExW+Tr5OtezDnpcS4GWU99jdZcF UWBcYI39KULX/7wZzoO8dgIxpF6PHRUPu+OXdIdmFZYAOr9H7Q/A8JOfbL7DC8+kvD 9GY3+iwqVXsc3zCSl0gHjN70EAk94bOWs2K0Q3nvVwq1kZMRg+x5Otxre+ir/YxN2l v2C0A+Tnt3ogmzLqfMQ+x1WG5Z1bHViIzO3k1oXUy0UQXUaxzTGYl9C85CjU7nRdny B9upwyU6vDEwC2TaqtB8/UlJWMfZZD57c5zEyCAfTiIFSO/lhhQWmiSoHluK1Un1Fl OP0VaoNI9ULeg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 3CE82CE0A13; Mon, 17 Jul 2023 11:23:39 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 14/18] torture: Avoid torture-test reboot loops Date: Mon, 17 Jul 2023 11:23:33 -0700 Message-Id: <20230717182337.1098991-14-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Currently, the various torture tests sometimes react to an early-boot bug by rebooting. This is almost always counterproductive, needlessly consuming CPU time and bloating the console log. This commit therefore adds the "-no-reboot" argument to qemu so that reboot requests will cause qemu to exit. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh index 1e7566997e51..3bc0140438ef 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh @@ -9,9 +9,10 @@ # # Usage: kvm-test-1-run.sh config resdir seconds qemu-args boot_args_in # -# qemu-args defaults to "-enable-kvm -nographic", along with arguments -# specifying the number of CPUs and other options -# generated from the underlying CPU architecture. +# qemu-args defaults to "-enable-kvm -nographic -no-reboot", along with +# arguments specifying the number of CPUs and +# other options generated from the underlying +# CPU architecture. # boot_args_in defaults to value returned by the per_version_boot_params # shell function. # @@ -139,7 +140,7 @@ then fi # Generate -smp qemu argument. -qemu_args="-enable-kvm -nographic $qemu_args" +qemu_args="-enable-kvm -nographic -no-reboot $qemu_args" cpu_count=`configNR_CPUS.sh $resdir/ConfigFragment` cpu_count=`configfrag_boot_cpus "$boot_args_in" "$config_template" "$cpu_count"` if test "$cpu_count" -gt "$TORTURE_ALLOTED_CPUS" -- 2.40.1