Page MenuHomeFreeBSD

bhyve: Use vm_get_topology to query kernel's maximum vCPU count.
ClosedPublic

Authored by jhb on Mar 8 2022, 10:39 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 4, 2:54 AM
Unknown Object (File)
Sun, Jun 28, 1:33 PM
Unknown Object (File)
Tue, Jun 23, 11:54 PM
Unknown Object (File)
Jun 2 2026, 10:41 PM
Unknown Object (File)
May 14 2026, 3:40 PM
Unknown Object (File)
May 14 2026, 9:28 AM
Unknown Object (File)
May 14 2026, 1:26 AM
Unknown Object (File)
May 13 2026, 10:05 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44705
Build 41593: arc lint + arc unit

Event Timeline

The use of num_vcpus_allowed() could probably be collapsed at some point into calc_topology()

This revision is now accepted and ready to land.Mar 8 2022, 11:11 PM

The use of num_vcpus_allowed() could probably be collapsed at some point into calc_topology()

Yeah, it's kind of messy right now as what happens if you use too high a CPU count (e.g. -c 17) you get a cryptic error due to set_topology failing rather than the better error here.