From: Philippe Mathieu-Daudé Date: Sat, 13 Oct 2018 00:40:28 +0000 (+0200) Subject: tests/vm: Do not use the -smp option with a single cpu X-Git-Tag: v3.1.0-rc0~31^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=071cf5a4205a1fe7a33f61477e5f73f86cd2f9fe;p=thirdparty%2Fqemu.git tests/vm: Do not use the -smp option with a single cpu Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20181013004034.6968-4-f4bug@amsat.org> Reviewed-by: Richard Henderson Signed-off-by: Fam Zheng --- diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py index 2bd32dc6cef..9415e7c33a9 100755 --- a/tests/vm/basevm.py +++ b/tests/vm/basevm.py @@ -70,7 +70,7 @@ class BaseVM(object): "-device", "virtio-net-pci,netdev=vnet", "-vnc", "127.0.0.1:0,to=20", "-serial", "file:%s" % os.path.join(self._tmpdir, "serial.out")] - if vcpus: + if vcpus and vcpus > 1: self._args += ["-smp", str(vcpus)] if kvm_available(): self._args += ["-enable-kvm"]