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
(cherry picked from commit 8d72823b38b779036014938cc250f859b27fb3f7)

Details

Provenance
leresAuthored on Jan 7 2025, 4:10 PM
vvdCommitted on Jan 7 2025, 7:40 PM
Parents
R11:44948a7531f7: sysutils/keyd: clarify VT is not supported on FreeBSD
Branches
Unknown
Tags
Unknown