]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test: set QEMU machine for ARM and PowerPC
authorBenjamin Drung <benjamin.drung@canonical.com>
Fri, 18 Aug 2023 11:17:59 +0000 (13:17 +0200)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Tue, 22 Aug 2023 11:50:42 +0000 (07:50 -0400)
Set QEMU machine for ARM and PowerPC to run on Debian/Ubuntu.

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
test/run-qemu

index a3f30a079258cf42aaa3a3a8398086bca96e005d..271f0019a2e431324e9ce7079cbcc50f931eaeda 100755 (executable)
@@ -21,9 +21,18 @@ QEMU_CPU="${QEMU_CPU:-max}"
 }
 
 case "$ARCH" in
+    aarch64 | arm64)
+        ARGS+=(-M "virt,gic-version=max")
+        ;;
     amd64 | i?86 | x86_64)
         ARGS+=(-M q35)
         ;;
+    arm | armhf | armv7l)
+        ARGS+=(-M virt)
+        ;;
+    ppc64el | ppc64le)
+        ARGS+=(-M "cap-ccf-assist=off,cap-cfpc=broken,cap-ibs=broken,cap-sbbc=broken")
+        ;;
 esac
 
 # Provide rng device sourcing the hosts /dev/urandom and other standard parameters