projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec99451
)
selftests/bpf: Update vmtests.sh to support aarch64
author
Manu Bretelle
<chantr4@gmail.com>
Fri, 21 Oct 2022 21:07:00 +0000
(14:07 -0700)
committer
Andrii Nakryiko
<andrii@kernel.org>
Fri, 21 Oct 2022 23:27:25 +0000
(16:27 -0700)
Add handling of aarch64 when setting QEMU options and provide the right
path to aarch64 kernel image.
Signed-off-by: Manu Bretelle <chantr4@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20221021210701.728135-4-chantr4@gmail.com
tools/testing/selftests/bpf/vmtest.sh
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/bpf/vmtest.sh
b/tools/testing/selftests/bpf/vmtest.sh
index a29aa05ebb3e98cc64129ca8bcb7fe30de17e20c..316a56d680f25d25e08388e6b1d6b62452b12e1d 100755
(executable)
--- a/
tools/testing/selftests/bpf/vmtest.sh
+++ b/
tools/testing/selftests/bpf/vmtest.sh
@@
-21,6
+21,12
@@
x86_64)
QEMU_FLAGS=(-cpu host -smp 8)
BZIMAGE="arch/x86/boot/bzImage"
;;
+aarch64)
+ QEMU_BINARY=qemu-system-aarch64
+ QEMU_CONSOLE="ttyAMA0,115200"
+ QEMU_FLAGS=(-M virt,gic-version=3 -cpu host -smp 8)
+ BZIMAGE="arch/arm64/boot/Image"
+ ;;
*)
echo "Unsupported architecture"
exit 1