HomeFreeBSD

emulators/virtualbox-ose-kmod: Add check for MAXCPU and mp_maxcpus before load…

Description

emulators/virtualbox-ose-kmod: Add check for MAXCPU and mp_maxcpus before load vboxdrv.ko

If the MAXCPU option is not the default for the running kernel, then
'kldload vboxdrv.ko' will result in a kernel panic.
Due to ABI difference (vboxdrv passes cpuset_t parameter (bitfield with
CPU_SETSIZE -> MAXCPU bits) into smp_rendezvous_cpus()) kernel panics
with "ncpus is 0 with non-zero map" message.

PR: 219913

Details

Provenance
leresAuthored on Jan 7 2025, 4:10 PM
vvdCommitted on Jan 7 2025, 4:10 PM
Parents
R11:f1ce770c2fab: games/gtypist: switch to unbotched .xz distfile
Branches
Unknown
Tags
Unknown