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)
Mon, Mar 9, 11:22 AM
Unknown Object (File)
Mon, Mar 9, 5:43 AM
Unknown Object (File)
Sat, Feb 28, 3:01 AM
Unknown Object (File)
Thu, Feb 26, 6:26 PM
Unknown Object (File)
Tue, Feb 24, 2:16 PM
Unknown Object (File)
Fri, Feb 20, 3:20 PM
Unknown Object (File)
Feb 8 2026, 6:04 AM
Unknown Object (File)
Feb 8 2026, 1:01 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.