summaryrefslogtreecommitdiff
path: root/gnu/build
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-04-27 21:43:25 +0100
committerChristopher Baines <mail@cbaines.net>2019-04-29 21:11:38 +0100
commit05344275517e12ea60039272b5d8936d18fd4338 (patch)
tree246dcf020d932b289175036013db2d9648c79112 /gnu/build
parentb6afc350514ae5016adc6ca70f7be72aa3ecb2d2 (diff)
downloadpatches-05344275517e12ea60039272b5d8936d18fd4338.tar
patches-05344275517e12ea60039272b5d8936d18fd4338.tar.gz
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.
Diffstat (limited to 'gnu/build')
-rw-r--r--gnu/build/vm.scm1
1 files changed, 1 insertions, 0 deletions
diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index 372cf63c68..ac99d6b1a3 100644
--- a/gnu/build/vm.scm
+++ b/gnu/build/vm.scm
@@ -145,6 +145,7 @@ the #:references-graphs parameter of 'derivation'."
(_ #f))
(apply invoke qemu "-nographic" "-no-reboot"
+ "-smp" (number->string (parallel-job-count))
"-m" (number->string memory-size)
"-object" "rng-random,filename=/dev/urandom,id=guixsd-vm-rng"
"-device" "virtio-rng-pci,rng=guixsd-vm-rng"