Page MenuHomeFreeBSD

bhyve: Remove vestigial support for setting max vCPUs.
ClosedPublic

Authored by jhb on Oct 27 2022, 3:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 8:37 PM
Unknown Object (File)
Fri, Oct 18, 7:50 AM
Unknown Object (File)
Thu, Oct 17, 7:47 AM
Unknown Object (File)
Wed, Oct 16, 12:20 AM
Unknown Object (File)
Oct 13 2024, 6:09 PM
Unknown Object (File)
Oct 13 2024, 3:25 AM
Unknown Object (File)
Oct 12 2024, 12:42 PM
Unknown Object (File)
Oct 11 2024, 5:10 AM

Details

Summary

The kernel part of the hypervisor is not going to support per-VM
maxcpu limits. The topology is only used to control the values
returned by CPUID leaves for which max vCPUs is not relevant.

Diff Detail

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

Event Timeline

jhb requested review of this revision.Oct 27 2022, 3:06 PM
jhb retitled this revision from bhyve: Remove vestigal support for setting max vCPUs. to bhyve: Remove vestigial support for setting max vCPUs..Nov 3 2022, 11:14 PM
This revision is now accepted and ready to land.Nov 4 2022, 6:43 AM

Should vm_set_topology() be updated to indicate that maxcpus is unimplemented? I can see why you didn't remove the parameter at least.

I may actually wait on this. It might still be useful to set the size of the maxcpus array by passing the limit in via a new vmm_create operation.

I don't care. It's unused code, so we can remove it. If you like to add support to vm_create for maxcpus, you can easily revert this change. OTOH, it's fine to keep it as it is.

I guess it's fine to merge.