From ff4c35a025abbfb3adb8c220c681984fd064d092 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Fri, 8 Feb 2019 10:32:48 -0500 Subject: [PATCH] qemu: set smp flag to CPU core count (!1751) The default is single core. Modern PCs have many cores so use them. --- pmb/qemu/run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pmb/qemu/run.py b/pmb/qemu/run.py index 66f9967c..7004ccb0 100644 --- a/pmb/qemu/run.py +++ b/pmb/qemu/run.py @@ -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: