maintainer-feedback requested: [Bug 219913] emulators/virtualbox-ose-kmod: when MAXCPU option is not default for running kernel 'kldload vboxdrv.ko' will result in kernel panic

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jun 10 19:01:33 UTC 2017


Andriy Voskoboinyk <avos at freebsd.org> has reassigned Bugzilla Automation
<bugzilla at FreeBSD.org>'s request for maintainer-feedback to vbox at FreeBSD.org:
Bug 219913: emulators/virtualbox-ose-kmod: when MAXCPU option is not default
for running kernel 'kldload vboxdrv.ko' will result in kernel panic
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219913



--- Description ---
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.

Manual "opt_global.h" inclusion from current kernel build into
src/VBox/Runtime/r0drv/freebsd/mp-r0drv-freebsd.c seems to fix this issue when
MAXCPU is overridden; kern.smp.maxcpus may be used instead (in case if other
'global' options are not so problematic).


More information about the freebsd-emulation mailing list