diff mbox series

[bug#35461] vm: Pass -smp to QEMU to allow use of multiple cores.

Message ID 20190427204325.12364-1-mail@cbaines.net
State Accepted
Headers show
Series [bug#35461] vm: Pass -smp to QEMU to allow use of multiple cores. | expand

Checks

Context Check Description
cbaines/applying patch success Successfully applied

Commit Message

Christopher Baines April 27, 2019, 8:43 p.m. UTC
* gnu/build/vm.scm (load-in-linux-vm): Pass (parallel-job-count) to QEMU with
-smp to allow using multiple cores.
---
 gnu/build/vm.scm | 1 +
 1 file changed, 1 insertion(+)

Comments

Ludovic Courtès April 29, 2019, 7:49 a.m. UTC | #1
Christopher Baines <mail@cbaines.net> skribis:

> * gnu/build/vm.scm (load-in-linux-vm): Pass (parallel-job-count) to QEMU with
> -smp to allow using multiple cores.

Good idea, LGTM!
Christopher Baines April 29, 2019, 8:12 p.m. UTC | #2
Ludovic Courtès <ludo@gnu.org> writes:

> Christopher Baines <mail@cbaines.net> skribis:
>
>> * gnu/build/vm.scm (load-in-linux-vm): Pass (parallel-job-count) to QEMU with
>> -smp to allow using multiple cores.
>
> Good idea, LGTM!

Great, I've pushed this to master now.
diff mbox series

Patch

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"