diff mbox series

[PULL,8/9] tests/vm: Do not use -enable-kvm if HOST != TARGET architecture

Message ID 20181026141529.4305-9-famz@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,1/9] tests: docker: update test-mingw for GTK+ 2.0 removal | expand

Commit Message

Fam Zheng Oct. 26, 2018, 2:15 p.m. UTC
From: Philippe Mathieu-Daudé <f4bug@amsat.org>

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20181013004034.6968-8-f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Fam Zheng <famz@redhat.com>
---
 tests/vm/basevm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index b2e0de2022..9f4794898a 100755
--- a/tests/vm/basevm.py
+++ b/tests/vm/basevm.py
@@ -74,7 +74,7 @@  class BaseVM(object):
             "-serial", "file:%s" % os.path.join(self._tmpdir, "serial.out")]
         if vcpus and vcpus > 1:
             self._args += ["-smp", str(vcpus)]
-        if kvm_available():
+        if kvm_available(self.arch):
             self._args += ["-enable-kvm"]
         else:
             logging.info("KVM not available, not using -enable-kvm")