Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1403415
| From | Boqun Feng <boqun.feng@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/4] rcutorture: Make -soundhw a x86 specific option |
| Date | 2016-05-19 05:50 +0200 |
| Message-ID | <rAn8d-2Qg-9@gated-at.bofh.it> (permalink) |
| References | <rAmYy-2N2-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The option "-soundhw pcspk" gives me a error on PPC as follow:
qemu-system-ppc64: ISA bus not available for pcspk
, which means this option doesn't work on ppc by default. So simply make
this an x86-specific option via identify_qemu_args().
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
---
tools/testing/selftests/rcutorture/bin/functions.sh | 1 +
tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh
index 616180153208..77fdb46cc65a 100644
--- a/tools/testing/selftests/rcutorture/bin/functions.sh
+++ b/tools/testing/selftests/rcutorture/bin/functions.sh
@@ -171,6 +171,7 @@ identify_qemu_append () {
identify_qemu_args () {
case "$1" in
qemu-system-x86_64|qemu-system-i386)
+ echo -soundhw pcspk
;;
qemu-system-ppc64)
echo -enable-kvm -M pseries -cpu POWER7 -nodefaults
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 46cb6bc098bd..d7a3de26dd11 100755
--- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
+++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh
@@ -8,9 +8,9 @@
#
# Usage: kvm-test-1-run.sh config builddir resdir seconds qemu-args boot_args
#
-# qemu-args defaults to "-enable-kvm -soundhw pcspk -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", along with arguments
+# specifying the number of CPUs and other options
+# generated from the underlying CPU architecture.
# boot_args defaults to value returned by the per_version_boot_params
# shell function.
#
@@ -148,7 +148,7 @@ then
fi
# Generate -smp qemu argument.
-qemu_args="-enable-kvm -soundhw pcspk -nographic $qemu_args"
+qemu_args="-enable-kvm -nographic $qemu_args"
cpu_count=`configNR_CPUS.sh $config_template`
cpu_count=`configfrag_boot_cpus "$boot_args" "$config_template" "$cpu_count"`
vcpus=`identify_qemu_vcpus`
--
2.8.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] rcutorture: Several fixes to run selftest scripts on PPC Boqun Feng <boqun.feng@gmail.com> - 2016-05-19 05:40 +0200
[PATCH 2/4] rcutorture: Use vmlinux as the fallback kernel image Boqun Feng <boqun.feng@gmail.com> - 2016-05-19 05:50 +0200
[PATCH 3/4] rcutorture: Make -soundhw a x86 specific option Boqun Feng <boqun.feng@gmail.com> - 2016-05-19 05:50 +0200
Re: [PATCH 3/4] rcutorture: Make -soundhw a x86 specific option Josh Triplett <josh@joshtriplett.org> - 2016-05-19 06:30 +0200
Re: [PATCH 3/4] rcutorture: Make -soundhw a x86 specific option "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-05-19 16:20 +0200
Re: [PATCH 3/4] rcutorture: Make -soundhw a x86 specific option Josh Triplett <josh@joshtriplett.org> - 2016-05-19 17:50 +0200
Re: [PATCH 3/4] rcutorture: Make -soundhw a x86 specific option "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-05-19 18:30 +0200
Re: [PATCH 3/4] rcutorture: Make -soundhw a x86 specific option "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-05-19 21:40 +0200
Re: [PATCH 3/4] rcutorture: Make -soundhw a x86 specific option Josh Triplett <josh@joshtriplett.org> - 2016-05-19 22:30 +0200
Re: [PATCH 3/4] rcutorture: Make -soundhw a x86 specific option "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-05-23 23:30 +0200
[PATCH 4/4] rcutorture: Don't specify the cpu type of QEMU on PPC Boqun Feng <boqun.feng@gmail.com> - 2016-05-19 05:50 +0200
[PATCH 1/4] rcutorture/doc: Add a new way to create initrd using dracut Boqun Feng <boqun.feng@gmail.com> - 2016-05-19 05:50 +0200
Re: [PATCH 0/4] rcutorture: Several fixes to run selftest scripts on PPC Josh Triplett <josh@joshtriplett.org> - 2016-05-19 06:30 +0200
Re: [PATCH 0/4] rcutorture: Several fixes to run selftest scripts on PPC "Paul E. McKenney" <paulmck@linux.vnet.ibm.com> - 2016-05-19 16:20 +0200
csiph-web