Commit 71531bb5 authored by Philippe Mathieu-Daudé's avatar Philippe Mathieu-Daudé Committed by Fam Zheng
Browse files

tests/vm: Do not use -enable-kvm if HOST != TARGET architecture



Signed-off-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20181013004034.6968-8-f4bug@amsat.org>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Signed-off-by: default avatarFam Zheng <famz@redhat.com>
parent 67a52f34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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")