aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/rcutorture/bin/functions.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/functions.sh b/tools/testing/selftests/rcutorture/bin/functions.sh
index 07a13779eece..65f6655026f0 100644
--- a/tools/testing/selftests/rcutorture/bin/functions.sh
+++ b/tools/testing/selftests/rcutorture/bin/functions.sh
@@ -136,6 +136,9 @@ identify_boot_image () {
136 qemu-system-x86_64|qemu-system-i386) 136 qemu-system-x86_64|qemu-system-i386)
137 echo arch/x86/boot/bzImage 137 echo arch/x86/boot/bzImage
138 ;; 138 ;;
139 qemu-system-aarch64)
140 echo arch/arm64/boot/Image
141 ;;
139 *) 142 *)
140 echo vmlinux 143 echo vmlinux
141 ;; 144 ;;
@@ -158,6 +161,9 @@ identify_qemu () {
158 elif echo $u | grep -q "Intel 80386" 161 elif echo $u | grep -q "Intel 80386"
159 then 162 then
160 echo qemu-system-i386 163 echo qemu-system-i386
164 elif echo $u | grep -q aarch64
165 then
166 echo qemu-system-aarch64
161 elif uname -a | grep -q ppc64 167 elif uname -a | grep -q ppc64
162 then 168 then
163 echo qemu-system-ppc64 169 echo qemu-system-ppc64
@@ -176,16 +182,20 @@ identify_qemu () {
176# Output arguments for the qemu "-append" string based on CPU type 182# Output arguments for the qemu "-append" string based on CPU type
177# and the TORTURE_QEMU_INTERACTIVE environment variable. 183# and the TORTURE_QEMU_INTERACTIVE environment variable.
178identify_qemu_append () { 184identify_qemu_append () {
185 local console=ttyS0
179 case "$1" in 186 case "$1" in
180 qemu-system-x86_64|qemu-system-i386) 187 qemu-system-x86_64|qemu-system-i386)
181 echo noapic selinux=0 initcall_debug debug 188 echo noapic selinux=0 initcall_debug debug
182 ;; 189 ;;
190 qemu-system-aarch64)
191 console=ttyAMA0
192 ;;
183 esac 193 esac
184 if test -n "$TORTURE_QEMU_INTERACTIVE" 194 if test -n "$TORTURE_QEMU_INTERACTIVE"
185 then 195 then
186 echo root=/dev/sda 196 echo root=/dev/sda
187 else 197 else
188 echo console=ttyS0 198 echo console=$console
189 fi 199 fi
190} 200}
191 201
@@ -197,6 +207,9 @@ identify_qemu_args () {
197 case "$1" in 207 case "$1" in
198 qemu-system-x86_64|qemu-system-i386) 208 qemu-system-x86_64|qemu-system-i386)
199 ;; 209 ;;
210 qemu-system-aarch64)
211 echo -machine virt,gic-version=host -cpu host
212 ;;
200 qemu-system-ppc64) 213 qemu-system-ppc64)
201 echo -enable-kvm -M pseries -nodefaults 214 echo -enable-kvm -M pseries -nodefaults
202 echo -device spapr-vscsi 215 echo -device spapr-vscsi
@@ -254,7 +267,7 @@ specify_qemu_cpus () {
254 echo $2 267 echo $2
255 else 268 else
256 case "$1" in 269 case "$1" in
257 qemu-system-x86_64|qemu-system-i386) 270 qemu-system-x86_64|qemu-system-i386|qemu-system-aarch64)
258 echo $2 -smp $3 271 echo $2 -smp $3
259 ;; 272 ;;
260 qemu-system-ppc64) 273 qemu-system-ppc64)