diff options
author | Tom <tomut@yahoo.com> | 2021-08-09 09:20:12 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-09 21:02:23 +0200 |
commit | e3e52a4e6184b0cb05239086c3b141ddcf057b0a (patch) | |
tree | e753fb9eda3d2645383047ebb92e7de539845b68 /Meta | |
parent | 3e0d0847b6d73b0f7f50b0512d5016cd2dae9c91 (diff) | |
download | serenity-e3e52a4e6184b0cb05239086c3b141ddcf057b0a.zip |
Meta: Add SERENITY_CPUS environment variable to control number of CPUs
Diffstat (limited to 'Meta')
-rwxr-xr-x | Meta/run.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Meta/run.sh b/Meta/run.sh index 62762002e7..1e8a00a2be 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -118,6 +118,7 @@ if command -v wslpath >/dev/null; then fi [ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max" +[ -z "$SERENITY_CPUS" ] && SERENITY_CPUS="2" if [ -z "$SERENITY_SPICE" ] && "${SERENITY_QEMU_BIN}" -chardev help | grep -iq qemu-vdagent; then SERENITY_SPICE_SERVER_CHARDEV="-chardev qemu-vdagent,clipboard=on,mouse=off,id=vdagent,name=vdagent" @@ -182,7 +183,7 @@ $SERENITY_EXTRA_QEMU_ARGS -m $SERENITY_RAM_SIZE -cpu $SERENITY_QEMU_CPU -d guest_errors --smp 2 +-smp $SERENITY_CPUS -display $SERENITY_QEMU_DISPLAY_BACKEND -device $SERENITY_QEMU_DISPLAY_DEVICE -drive file=${SERENITY_DISK_IMAGE},format=raw,index=0,media=disk @@ -215,7 +216,7 @@ $SERENITY_EXTRA_QEMU_ARGS -cpu $SERENITY_QEMU_CPU -machine q35 -d guest_errors --smp 2 +-smp $SERENITY_CPUS -vga none -device bochs-display -device ich9-usb-ehci1,bus=pcie.0,multifunction=on,addr=0x5.0x0 @@ -316,7 +317,7 @@ elif [ "$SERENITY_RUN" = "ci" ]; then -cpu $SERENITY_QEMU_CPU \ -d guest_errors \ -no-reboot \ - -smp 2 \ + -smp ${SERENITY_CPUS} \ -drive file=${SERENITY_DISK_IMAGE},format=raw,index=0,media=disk \ -device ich9-ahci \ -nographic \ |