guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: guix-commits
Subject: 01/01: vm: Pass -smp to QEMU to allow use of multiple cores.
Date: Mon, 29 Apr 2019 16:12:06 -0400 (EDT)

cbaines pushed a commit to branch master
in repository guix.

commit 05344275517e12ea60039272b5d8936d18fd4338
Author: Christopher Baines <address@hidden>
Date:   Sat Apr 27 21:43:25 2019 +0100

    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.
---
 gnu/build/vm.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/build/vm.scm b/gnu/build/vm.scm
index 372cf63..ac99d6b 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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]