* [PATCH 5.15 1/2] torture: Avoid torture-test reboot loops
@ 2023-08-27 21:57 Joel Fernandes (Google)
2023-08-27 22:27 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Joel Fernandes (Google) @ 2023-08-27 21:57 UTC (permalink / raw)
To: stable, Paul E. McKenney, Josh Triplett, Steven Rostedt,
Mathieu Desnoyers, Lai Jiangshan, Shuah Khan
Cc: Joel Fernandes, rcu, linux-kselftest, linux-kernel
From: "Paul E. McKenney" <paulmck@kernel.org>
[ Upstream commit 10f84c2cfb5045e37d78cb5d4c8e8321e06ae18f ]
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 <paulmck@kernel.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
---
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 f4c8055dbf7a..c57be9563214 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.
#
@@ -141,7 +142,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.42.0.rc1.204.g551eb34607-goog
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 5.15 1/2] torture: Avoid torture-test reboot loops
2023-08-27 21:57 [PATCH 5.15 1/2] torture: Avoid torture-test reboot loops Joel Fernandes (Google)
@ 2023-08-27 22:27 ` Greg KH
2023-08-27 22:31 ` Joel Fernandes
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2023-08-27 22:27 UTC (permalink / raw)
To: Joel Fernandes (Google)
Cc: stable, Paul E. McKenney, Josh Triplett, Steven Rostedt,
Mathieu Desnoyers, Lai Jiangshan, Shuah Khan, rcu,
linux-kselftest, linux-kernel
On Sun, Aug 27, 2023 at 09:57:39PM +0000, Joel Fernandes (Google) wrote:
> From: "Paul E. McKenney" <paulmck@kernel.org>
>
> [ Upstream commit 10f84c2cfb5045e37d78cb5d4c8e8321e06ae18f ]
I don't see this commit in Linus's tree, am I just missing it somewhere?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 5.15 1/2] torture: Avoid torture-test reboot loops
2023-08-27 22:27 ` Greg KH
@ 2023-08-27 22:31 ` Joel Fernandes
2023-08-28 9:56 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Joel Fernandes @ 2023-08-27 22:31 UTC (permalink / raw)
To: Greg KH
Cc: stable, Paul E. McKenney, Josh Triplett, Steven Rostedt,
Mathieu Desnoyers, Lai Jiangshan, Shuah Khan, rcu,
linux-kselftest, linux-kernel
On Sun, Aug 27, 2023 at 6:27 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Sun, Aug 27, 2023 at 09:57:39PM +0000, Joel Fernandes (Google) wrote:
> > From: "Paul E. McKenney" <paulmck@kernel.org>
> >
> > [ Upstream commit 10f84c2cfb5045e37d78cb5d4c8e8321e06ae18f ]
>
> I don't see this commit in Linus's tree, am I just missing it somewhere?
>
Ah, this particular patch might not be in Linus's tree yet. It is in
Paul's tree. Feel free to ignore it for now if you want and I'll
resend it later (and likewise for the 5.10 one).
thanks,
- Joel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 5.15 1/2] torture: Avoid torture-test reboot loops
2023-08-27 22:31 ` Joel Fernandes
@ 2023-08-28 9:56 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2023-08-28 9:56 UTC (permalink / raw)
To: Joel Fernandes
Cc: stable, Paul E. McKenney, Josh Triplett, Steven Rostedt,
Mathieu Desnoyers, Lai Jiangshan, Shuah Khan, rcu,
linux-kselftest, linux-kernel
On Sun, Aug 27, 2023 at 06:31:55PM -0400, Joel Fernandes wrote:
> On Sun, Aug 27, 2023 at 6:27 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> >
> > On Sun, Aug 27, 2023 at 09:57:39PM +0000, Joel Fernandes (Google) wrote:
> > > From: "Paul E. McKenney" <paulmck@kernel.org>
> > >
> > > [ Upstream commit 10f84c2cfb5045e37d78cb5d4c8e8321e06ae18f ]
> >
> > I don't see this commit in Linus's tree, am I just missing it somewhere?
> >
>
> Ah, this particular patch might not be in Linus's tree yet. It is in
> Paul's tree. Feel free to ignore it for now if you want and I'll
> resend it later (and likewise for the 5.10 one).
Yeah, please just send it later, once it has landed in a -rc release
otherwise there's nothing we can do with it now, sorry.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-28 9:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-27 21:57 [PATCH 5.15 1/2] torture: Avoid torture-test reboot loops Joel Fernandes (Google)
2023-08-27 22:27 ` Greg KH
2023-08-27 22:31 ` Joel Fernandes
2023-08-28 9:56 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox