From 4436145eaf81b723821a50211126f0425d1dce24 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Fri, 19 Feb 2021 22:45:30 -0800 Subject: [PATCH] [scripts] Make SMP more easily configurable in qemu.sh --- qemu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemu.sh b/qemu.sh index 6b0591f..85acfaa 100755 --- a/qemu.sh +++ b/qemu.sh @@ -9,6 +9,7 @@ gfx="-nographic" vga="-vga none" kvm="" cpu="Broadwell,+pdpe1gb" +smp=4 for arg in $@; do case "${arg}" in @@ -70,7 +71,7 @@ exec qemu-system-x86_64 \ -monitor telnet:localhost:45454,server,nowait \ -serial stdio \ -serial telnet:localhost:45455,server,nowait \ - -smp 4 \ + -smp "${smp}" \ -m 512 \ -d mmu,int,guest_errors \ -D jsix.log \