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:
parent
a3b826b090
commit
ff4c35a025
|
@ -177,6 +177,8 @@ def command_qemu(args, arch, device, img_path, spice_enabled):
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("Architecture {} not supported by this command yet.".format(arch))
|
raise RuntimeError("Architecture {} not supported by this command yet.".format(arch))
|
||||||
|
|
||||||
|
command += ["-smp", str(os.cpu_count())]
|
||||||
|
|
||||||
# Kernel Virtual Machine (KVM) support
|
# Kernel Virtual Machine (KVM) support
|
||||||
native = True
|
native = True
|
||||||
if args.arch:
|
if args.arch:
|
||||||
|
|
Loading…
Reference in New Issue