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)
Wed, Sep 9, 3:18 PM
Unknown Object (File)
Tue, Sep 8, 7:35 PM
Unknown Object (File)
Tue, Sep 8, 5:59 AM
Unknown Object (File)
Mon, Sep 7, 8:14 AM
Unknown Object (File)
Wed, Sep 2, 4:07 PM
Unknown Object (File)
Tue, Sep 1, 8:19 PM
Unknown Object (File)
Sat, Aug 22, 7:06 PM
Unknown Object (File)
Fri, Aug 21, 10:21 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.