aboutsummaryrefslogtreecommitdiff
path: root/tests/vm
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2018-10-13 02:40:32 +0200
committerFam Zheng <famz@redhat.com>2018-10-26 22:03:21 +0800
commit71531bb5915cc6e69689d785ca1ba6a261bd26cf (patch)
treee76d931bcc4647d7fd5682e178b3f465b5e49f56 /tests/vm
parent67a52f34569cb70a54d3b3bb1c0dc7e7a280ca54 (diff)
downloadqemu-71531bb5915cc6e69689d785ca1ba6a261bd26cf.zip
qemu-71531bb5915cc6e69689d785ca1ba6a261bd26cf.tar.gz
qemu-71531bb5915cc6e69689d785ca1ba6a261bd26cf.tar.bz2
tests/vm: Do not use -enable-kvm if HOST != TARGET architecture
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>
Diffstat (limited to 'tests/vm')
-rwxr-xr-xtests/vm/basevm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
index b2e0de2..9f47948 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")