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
F154944526: D34493.id103705.diff
Thu, Apr 30, 5:57 AM
Unknown Object (File)
Mon, Apr 27, 1:18 PM
Unknown Object (File)
Sun, Apr 26, 2:47 PM
Unknown Object (File)
Mon, Apr 20, 9:35 PM
Unknown Object (File)
Sun, Apr 12, 6:45 PM
Unknown Object (File)
Sat, Apr 11, 1:49 PM
Unknown Object (File)
Sat, Apr 11, 4:48 AM
Unknown Object (File)
Fri, Apr 10, 6:40 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.