qemu: set smp flag to CPU core count (!1751)

The default is single core. Modern PCs have many cores so use them.
This commit is contained in:
Robert Yang 2019-02-08 10:32:48 -05:00 committed by Oliver Smith
parent a3b826b090
commit ff4c35a025
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,8 @@ def command_qemu(args, arch, device, img_path, spice_enabled):
else:
raise RuntimeError("Architecture {} not supported by this command yet.".format(arch))
command += ["-smp", str(os.cpu_count())]
# Kernel Virtual Machine (KVM) support
native = True
if args.arch: