summaryrefslogtreecommitdiff
path: root/Meta/run.sh
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-09-03 21:29:57 -0600
committerAndreas Kling <kling@serenityos.org>2021-09-04 22:22:58 +0200
commit918f7cb4a882715568563748614307549cc6d6f1 (patch)
tree5ecbb51790a842c4197199c370ca5334cbfe8f8f /Meta/run.sh
parent8a258edfd6fed0711d582f48cbc3ce625ef5d792 (diff)
downloadserenity-918f7cb4a882715568563748614307549cc6d6f1.zip
Meta: Force legacy xAPIC when using 8 cores or less
This is merely so that we exercise the legacy xAPIC code when we don't really need x2APIC.
Diffstat (limited to 'Meta/run.sh')
-rwxr-xr-xMeta/run.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Meta/run.sh b/Meta/run.sh
index 7842c45e20..67c099a2b1 100755
--- a/Meta/run.sh
+++ b/Meta/run.sh
@@ -124,6 +124,10 @@ fi
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max"
[ -z "$SERENITY_CPUS" ] && SERENITY_CPUS="2"
+if [ "$SERENITY_CPUS" -le 8 ]; then
+ # Explicitly disable x2APIC so we can test it more easily
+ SERENITY_QEMU_CPU="$SERENITY_QEMU_CPU,-x2apic"
+fi
if [ "$SERENITY_ARCH" != "aarch64" ]; then
if [ -z "$SERENITY_SPICE" ] && "${SERENITY_QEMU_BIN}" -chardev help | grep -iq qemu-vdagent; then