mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 08:15:08 +00:00
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.
This commit is contained in:
parent
8a258edfd6
commit
918f7cb4a8
1 changed files with 4 additions and 0 deletions
|
@ -124,6 +124,10 @@ fi
|
||||||
|
|
||||||
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max"
|
[ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max"
|
||||||
[ -z "$SERENITY_CPUS" ] && SERENITY_CPUS="2"
|
[ -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 [ "$SERENITY_ARCH" != "aarch64" ]; then
|
||||||
if [ -z "$SERENITY_SPICE" ] && "${SERENITY_QEMU_BIN}" -chardev help | grep -iq qemu-vdagent; then
|
if [ -z "$SERENITY_SPICE" ] && "${SERENITY_QEMU_BIN}" -chardev help | grep -iq qemu-vdagent; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue