提交 071cf5a4 编写于 作者: P Philippe Mathieu-Daudé 提交者: Fam Zheng

tests/vm: Do not use the -smp option with a single cpu

Signed-off-by: NPhilippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20181013004034.6968-4-f4bug@amsat.org>
Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
Signed-off-by: NFam Zheng <famz@redhat.com>
上级 8a6e007e
......@@ -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"]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册