···7575 exec ${qemu}/bin/qemu-kvm \
7676 -name ${vmName} \
7777 -m ${toString config.virtualisation.memorySize} \
7878+ -smp ${toString config.virtualisation.cores} \
7879 ${optionalString (pkgs.stdenv.system == "x86_64-linux") "-cpu kvm64"} \
7980 ${concatStringsSep " " config.virtualisation.qemu.networkingOptions} \
8081 -virtfs local,path=/nix/store,security_model=none,mount_tag=store \
···241242 ''
242243 Whether to run QEMU with a graphics window, or access
243244 the guest computer serial port through the host tty.
245245+ '';
246246+ };
247247+248248+ virtualisation.cores =
249249+ mkOption {
250250+ default = 1;
251251+ type = types.int;
252252+ description =
253253+ ''
254254+ Specify the number of cores the guest is permitted to use.
255255+ The number can be higher than the available cores on the
256256+ host system.
244257 '';
245258 };
246259