]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Avoid shadowing global variables in bhyverun.c
authorMark Johnston <markj@FreeBSD.org>
Fri, 9 Sep 2022 00:40:02 +0000 (20:40 -0400)
committerMark Johnston <markj@FreeBSD.org>
Tue, 25 Oct 2022 15:16:56 +0000 (11:16 -0400)
commit3b6cb9b43657d8898c165c5cd26459e4646ba4f0
tree469a9fac1599c4fcd27541d9391e357b7f8b8caf
parent75c3ca1ebf81224919f2b7a9edf2921ce76ea290
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
usr.sbin/bhyve/bhyverun.c
usr.sbin/bhyve/bhyverun.h
usr.sbin/bhyve/smbiostbl.c