From nobody Wed Oct 25 00:41:43 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SFVVb6gqQz4xk9f; Wed, 25 Oct 2023 00:41:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SFVVb6Dcdz3S8k; Wed, 25 Oct 2023 00:41:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698194503; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+QuiD7h1h8O2IjqTY9hV+SW3mKiJZ7Ogr/XSmsE7/D0=; b=ag6tBEW+WPUt/m5ZP96UA476eAwnRjyG//Yh5iwboFYaB8lzIQD50FWkGS7t0cxyAlUkVv v5gbdNSff68PdfQAj7y6poREwo9mwTGEu8ndEyFnjQQ8xBlP5RiZDOEViDHMi1KGmv1GMa y35FD2b+bHgDbRPnDRyv5xh78Xx7b0I+0MUrMnuJQGc37DcXRQ/kSDkgJK+hs3jRtpip0O zs9nfZjRdG54pGbwAIRmTg30eULUrfQjqJbv1ImJXlSwRrVUoeLTZJcGdv5jiz0fWKLN/B qPaaetqDK5y29vCULueQGVPiup3Y9+AR5OxyEF7KFTTA8E45J31dQefU/5MQ5A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698194503; a=rsa-sha256; cv=none; b=NAB/E9GixyaAi0sW6fs9yQltVFlAiXwkwyW66+0udcJ2y25y1GUHmujAtvbaiX1KzSzOX+ bdJVIhFuEz7A04+fkPlWusKhO30Ixnyr+IOaiLtmz0myVzVf2DClG4PsVff1uKAQcKdbjx fnIL7TtAdbJcfZhpoCEBqfeuVeaXX51YeMd9I3CZdM/jy5fEJcM3Jy1FY8EhS/3ldVR87x DoJsIwwMQB8/I/GNLoq8JBTtSwNgpS6LcN86E4T+Z94mc63dC7ewdtwACRklPohs6pJ5Vu AoiFmazknHrN3Q8leNhcnWeXi7JPvSI8h069yA9cfo0sKkCpPY9tPBZs3GYzrw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698194503; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+QuiD7h1h8O2IjqTY9hV+SW3mKiJZ7Ogr/XSmsE7/D0=; b=DgLxbzoWj3t2vRUmRnyJ33tEmzPvT32XC4P5jI2H6oEOE0Yv7n2E4BHi4lzxtmQtUnI9te ZMqa4uO8E6WU8gwH8LUDstKr8BTPc+grOBRW2e7FVjnwV18rgE0RcBbu8lsGAw8RJqUUyg It66IhOiR05E8RInUdiw/s9wkG36nXi0NiSqMSMDasElGylUHpCNMb/8+tki7EDPThpC9X IRvHOavjIpen8POpOEsSeLTLqRAL/KLoLOhYmVBT0bBEX3n9sus/MZMsMd+x9lslJCd6aw 8OkRQfXEUqTsYgfHY0GvdNbtQGvlGyNa/lGsO84V+MLfK7Rrv5+RSa84TilMjA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SFVVb5J5nzkmT; Wed, 25 Oct 2023 00:41:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39P0fhV6005601; Wed, 25 Oct 2023 00:41:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39P0fh26005598; Wed, 25 Oct 2023 00:41:43 GMT (envelope-from git) Date: Wed, 25 Oct 2023 00:41:43 GMT Message-Id: <202310250041.39P0fh26005598@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 2d3d2475c99f - releng/14.0 - bhyve: Document the hw.vmm.maxcpu tunable and the current limit on vCPUs List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: 2d3d2475c99f0be30ec4bb15eae5a435039c742e Auto-Submitted: auto-generated The branch releng/14.0 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=2d3d2475c99f0be30ec4bb15eae5a435039c742e commit 2d3d2475c99f0be30ec4bb15eae5a435039c742e Author: Yuri Pankov AuthorDate: 2023-10-12 19:49:47 +0000 Commit: John Baldwin CommitDate: 2023-10-24 19:26:57 +0000 bhyve: Document the hw.vmm.maxcpu tunable and the current limit on vCPUs Reviewed by: corvink (original version) Co-authored-by: John Baldwin Differential Revision: https://reviews.freebsd.org/D40074 (cherry picked from commit da202b0fe616e9314739f01493ae310e37a36d8d) (cherry picked from commit cfdb5e70adb3614f70a35240eab89519a5536d2c) Approved by: re (gjb) --- share/man/man4/vmm.4 | 12 +++++++++++- usr.sbin/bhyve/bhyve.8 | 12 ++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/share/man/man4/vmm.4 b/share/man/man4/vmm.4 index e94f0ccaeac8..cb3276a7d8f1 100644 --- a/share/man/man4/vmm.4 +++ b/share/man/man4/vmm.4 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 19, 2013 +.Dd October 12, 2023 .Dt VMM 4 .Os .Sh NAME @@ -79,6 +79,16 @@ The and .Va pptdevs3 variables can be used for additional entries. +.Sh LOADER TUNABLES +Tunables can be set at the +.Xr loader 8 +prompt before booting the kernel or stored in +.Xr loader.conf 5 . +.Bl -tag -width indent +.It Va hw.vmm.maxcpu +Maximum number of virtual CPUs. +The default is the number of physical CPUs in the system. +.El .Sh EXAMPLES Reserve three PCI devices for use by the hypervisor: bus 10 slot 0 function 0, bus 6 slot 5 function 0, and bus 6 slot 5 function 1. diff --git a/usr.sbin/bhyve/bhyve.8 b/usr.sbin/bhyve/bhyve.8 index 7eddeec4647a..21313e0fcad4 100644 --- a/usr.sbin/bhyve/bhyve.8 +++ b/usr.sbin/bhyve/bhyve.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd May 5, 2023 +.Dd October 12, 2023 .Dt BHYVE 8 .Os .Sh NAME @@ -131,7 +131,6 @@ The default value for each of and .Ar threads is 1. -The current maximum number of guest virtual CPUs is 16. If .Ar numcpus is not specified then it will be calculated from the other arguments. @@ -145,6 +144,15 @@ and If a .Ar setting is specified more than once the last one has precedence. +.Pp +The maximum number of virtual CPUs defaults to the number of active +physical CPUs in the system available via the +.Va hw.vmm.maxcpu +.Xr sysctl 8 +variable. +The limit can be adjusted via the +.Va hw.vmm.maxcpu +loader tunable. .It Fl D Destroy the VM on guest initiated power-off. .It Fl e