diff options
author | Boqun Feng <boqun.feng@gmail.com> | 2016-05-18 23:42:23 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-06-14 19:03:29 -0400 |
commit | 1b2f48f29e5507a15c1fa8264362d30c02607dcd (patch) | |
tree | 5bd2d0e25f8345bf1f708f2b3f15678700d8aafc | |
parent | 1b900c6a26de26e111617d6b69b64aaee7b9de01 (diff) |
rcutorture: Make -soundhw a x86 specific option
The option "-soundhw pcspk" gives me a error on PPC as follow:
qemu-system-ppc64: ISA bus not available for pcspk
This 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>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r-- | tools/testing/selftests/rcutorture/bin/functions.sh | 1 | ||||
-rwxr-xr-x | 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 () { | |||
171 | identify_qemu_args () { | 171 | identify_qemu_args () { |
172 | case "$1" in | 172 | case "$1" in |
173 | qemu-system-x86_64|qemu-system-i386) | 173 | qemu-system-x86_64|qemu-system-i386) |
174 | echo -soundhw pcspk | ||
174 | ;; | 175 | ;; |
175 | qemu-system-ppc64) | 176 | qemu-system-ppc64) |
176 | echo -enable-kvm -M pseries -cpu POWER7 -nodefaults | 177 | 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 8dc5e4639fb4..ea6e373edc27 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 @@ | |||
8 | # | 8 | # |
9 | # Usage: kvm-test-1-run.sh config builddir resdir seconds qemu-args boot_args | 9 | # Usage: kvm-test-1-run.sh config builddir resdir seconds qemu-args boot_args |
10 | # | 10 | # |
11 | # qemu-args defaults to "-enable-kvm -soundhw pcspk -nographic", along with | 11 | # qemu-args defaults to "-enable-kvm -nographic", along with arguments |
12 | # arguments specifying the number of CPUs and other | 12 | # specifying the number of CPUs and other options |
13 | # options generated from the underlying CPU architecture. | 13 | # generated from the underlying CPU architecture. |
14 | # boot_args defaults to value returned by the per_version_boot_params | 14 | # boot_args defaults to value returned by the per_version_boot_params |
15 | # shell function. | 15 | # shell function. |
16 | # | 16 | # |
@@ -148,7 +148,7 @@ then | |||
148 | fi | 148 | fi |
149 | 149 | ||
150 | # Generate -smp qemu argument. | 150 | # Generate -smp qemu argument. |
151 | qemu_args="-enable-kvm -soundhw pcspk -nographic $qemu_args" | 151 | qemu_args="-enable-kvm -nographic $qemu_args" |
152 | cpu_count=`configNR_CPUS.sh $config_template` | 152 | cpu_count=`configNR_CPUS.sh $config_template` |
153 | cpu_count=`configfrag_boot_cpus "$boot_args" "$config_template" "$cpu_count"` | 153 | cpu_count=`configfrag_boot_cpus "$boot_args" "$config_template" "$cpu_count"` |
154 | vcpus=`identify_qemu_vcpus` | 154 | vcpus=`identify_qemu_vcpus` |