vm: Pass -smp to QEMU to allow use of multiple cores.

* gnu/build/vm.scm (load-in-linux-vm): Pass (parallel-job-count) to QEMU with
-smp to allow using multiple cores.
This commit is contained in:
Christopher Baines 2019-04-27 21:43:25 +01:00
parent b6afc35051
commit 0534427551
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -145,6 +145,7 @@ (define arch-specific-flags
(_ #f)) (_ #f))
(apply invoke qemu "-nographic" "-no-reboot" (apply invoke qemu "-nographic" "-no-reboot"
"-smp" (number->string (parallel-job-count))
"-m" (number->string memory-size) "-m" (number->string memory-size)
"-object" "rng-random,filename=/dev/urandom,id=guixsd-vm-rng" "-object" "rng-random,filename=/dev/urandom,id=guixsd-vm-rng"
"-device" "virtio-rng-pci,rng=guixsd-vm-rng" "-device" "virtio-rng-pci,rng=guixsd-vm-rng"