HomeFreeBSD

bhyve: Avoid shadowing global variables in bhyverun.c

Description

bhyve: Avoid shadowing global variables in bhyverun.c

  • Rename the global cores/sockets/threads to cpu_cores/sockets/threads. This way, num_vcpus_allowed() doesn't shadow them.
  • The global maxcpus is unused, remove it for the same reason.

MFC after: 1 week

Details

Provenance
markjAuthored on Sep 9 2022, 12:40 AM
Parents
rG75c3ca1ebf81: split: add some tests
Branches
Unknown
Tags
Unknown