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 838240bb21f027482cad3fff9aba3da1dc748b68 (commit)
from 3be30ee852ec91465eb1752432a714ad1ce305ca (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 838240bb21f027482cad3fff9aba3da1dc748b68
Author: David Bidner <[email protected]>
Date: Fri Nov 6 12:36:08 2026 +0100
i386: allocate AP descriptor tables before starting secondary CPUs
Each AP called mp_desc_init() from cpu_setup(), which took the AP's
descriptor table (GDT, LDT, IDT and TSS) from init_alloc_aligned().
That is the boot allocator; once the VM system is up it no longer owns
any memory, so the AP wrote its table into pages the kernel had
already handed out.
Allocate the tables with kmem_alloc_wired() in start_other_cpus(),
before any AP is started, and let the APs only pick up their table.
mp_desc_init() uses its argument only as the index of the CPU whose
tables it sets up and reads no per-CPU state, so it can run on the BSP
before the AP reaches init_percpu().
When the APs start, the old code corrupted pv_head_table in a guest
with 2 GiB of RAM (38 bad entries at -smp 2, 114 at -smp 4, in a
QEMU/NVMM i386 PAE guest) and ended in a pmap fault or hang under
memory pressure within a minute at -smp 4. With this change the
table is intact and 300 s runs of the same load (apt-get update plus
three parallel 200 MB downloads) are clean.
Message-ID: <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
i386/i386/mp_desc.c | 17 ++++++++++++-----
i386/i386/mp_desc.h | 2 +-
2 files changed, 13 insertions(+), 6 deletions(-)
hooks/post-receive
--
GNU Mach