🐎 Allow qemu to use all available CPUs
Speed up the boot tests by allowing qemu to use all of the available CPUs on the system. Our CI VMs have at least 2 CPUs and this shortens the time required for a boot test. Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
af0f3a4585
commit
3740e9bc6b
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,8 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
|
@ -128,6 +130,8 @@ func withBootedQemuImage(image string, ns netNS, f func() error) error {
|
|||
|
||||
qemuX8664Cmd := ns.NamespacedCommand(
|
||||
"qemu-system-x86_64",
|
||||
"-cpu", "host",
|
||||
"-smp", strconv.Itoa(runtime.NumCPU()),
|
||||
"-m", "1024",
|
||||
"-snapshot",
|
||||
"-accel", "accel=kvm:hvf:tcg",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue