[Bug 219913] emulators/virtualbox-ose-kmod: if the MAXCPU option is not the default for the running kernel, then 'kldload vboxdrv.ko' will result in a kernel panic

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 29 Jun 2024 01:00:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219913

--- Comment #15 from Craig Leres <leres@freebsd.org> ---
First, I would not worry too much about supporting users who want to use a
non-default MAXCPU, they'll be able to figure it out.

But is it likely that anyone would even want to do this? The current default is
1024 and I'm not so sure FreeBSD even runs on any hardware that has more than
1024 cores.

And it doesn't seem likely to me that someone would want to run a custom kernel
with fewer than 1024 cores. The only reason I can think of is to (slightly)
reduce the amount of kernel memory used. But would you really need to do that
on a system beefy enough to run virtualbox?

But if you wanted to do this, you would add:

    options MAXCPU=2048

to your kernel config, run "config", make depend ..., make ...

Then yes, you'd have to do something custom to build a virtualbox-ose-kmod that
would work with it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.