From: Benjamin Drung Date: Fri, 18 Aug 2023 11:17:59 +0000 (+0200) Subject: test: set QEMU machine for ARM and PowerPC X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65f0ef52a9bd63ccb1e31ccae948b49978e5ab0e;p=thirdparty%2Fdracut.git test: set QEMU machine for ARM and PowerPC Set QEMU machine for ARM and PowerPC to run on Debian/Ubuntu. Signed-off-by: Benjamin Drung --- diff --git a/test/run-qemu b/test/run-qemu index a3f30a079..271f0019a 100755 --- a/test/run-qemu +++ b/test/run-qemu @@ -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