diff mbox

[kvm-unit-tests,4/6] arm/run: allow tests to run in AArch32 mode

Message ID 1453474709-10679-5-git-send-email-drjones@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Jones Jan. 22, 2016, 2:58 p.m. UTC
With this and the "mkstandalone: fix generation for arm" patch, we
can now send an arm standalone test to an aarch64 host and run it.

Signed-off-by: Andrew Jones <drjones@redhat.com>
---
 arm/run | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/arm/run b/arm/run
index 654a17c8f69c2..dc0a33204c20b 100755
--- a/arm/run
+++ b/arm/run
@@ -30,8 +30,11 @@  if [ -z "$ACCEL" ]; then
 	fi
 fi
 
-if [ "$ARCH" = "arm64" ] && [ "$ACCEL" = "kvm" ]; then
+if [ "$HOST" = "aarch64" ] && [ "$ACCEL" = "kvm" ]; then
 	processor="host"
+	if [ "$ARCH" = "arm" ]; then
+		processor+=",aarch64=off"
+	fi
 fi
 
 qemu="${QEMU:-qemu-system-$ARCH_NAME}"