Skip to content

Commit

Permalink
tests/vm: Do not use the -smp option with a single cpu
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Fam Zheng <[email protected]>
  • Loading branch information
philmd authored and Fam Zheng committed Oct 26, 2018
1 parent 8a6e007 commit 071cf5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/vm/basevm.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def __init__(self, debug=False, vcpus=None):
"-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"]
Expand Down

0 comments on commit 071cf5a

Please sign in to comment.