This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mach".
The branch, master has been updated
via f349a52f3ac6f97024122f59d843f667206913fa (commit)
from 838240bb21f027482cad3fff9aba3da1dc748b68 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f349a52f3ac6f97024122f59d843f667206913fa
Author: David Bidner <[email protected]>
Date: Fri Nov 6 11:57:23 2026 +0100
i386/smp: start APs with targeted INIT/SIPI instead of broadcast
The SMP AP bring-up used the ICR "all excluding self" shorthand for the
INIT assert/deassert and the two STARTUP IPIs. Some hypervisors reject
that broadcast shorthand (bhyve returns an error on the ICR write and
aborts the VM), and it is not the documented per-AP INIT/SIPI sequence.
Send INIT (assert then deassert) and two STARTUP IPIs targeted at each
AP's APIC ID taken from the MADT, with STARTUP level asserted.
No other change to the AP bring-up path.
Tested in QEMU/NVMM on current master with "i386: allocate AP
descriptor tables before starting secondary CPUs" applied (sent
separately; without it the APs corrupt kernel memory once they run),
i386 PAE: -smp 1, 2 and 4 boot, with --enable-ncpus=4 all APs come
online, and 300 s runs of a heavy load (apt-get update plus three
parallel 200 MB downloads) are clean. Earlier, on b46c2dfa, it was
also tested in QEMU TCG and with x86_64 guests: with --enable-ncpus=2
and -smp 4 the guest boots once instead of resetting in a loop.
Message-ID: <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
i386/i386/smp.c | 36 ++++++++++++++++++++++++------------
1 file changed, 24 insertions(+), 12 deletions(-)
hooks/post-receive
--
GNU Mach