From nobody Tue Oct 24 19:00:32 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 4SFLww5Pq5z4yN88; Tue, 24 Oct 2023 19:00:32 +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 4SFLww464Yz4HGd; Tue, 24 Oct 2023 19:00:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698174032; 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=DUgXnbn24b+KH9DHh442npdudfj+RcbkhPPcN1hz/CA=; b=n0FMKtIGL8QHWj5BPeoPKeDA/Aa59/101vgIimELl+ZERutHFDC2dngUEic6KsLm5utjD3 POVHSLgVVTGJiq0E5KPAiZ5QjW8LYluxomAvpBeT05f3zJ5qJmNBhorZoTDnh+wqWUks69 +QUd19UrX+B4wW89APuVC84NPvSDZhVEaAoMrD+ErIRRMdoqO6gJ0GGQLtZJBW3fJ2cLxh 9/cSWFhPI26LwuqeZNGJ+zuh81dWB99XExLTMg5nh2SGapOSrzubBJ6Wk8w9bQU98tZ6Ke tfImPfeHHsKeI0GyrUqHdx/IQ96212I3AxzhOD7GekYWxlNAPjCDuT6tTe/kXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698174032; a=rsa-sha256; cv=none; b=lgrmnaSR0XnWKD6QBXIepWBypCh4lDCQnBlflXbhTdnJtEJbfu5lzSB5Sk6u9npVgL7+0g YC5BFE+PU9iMLEqKhY3BRjyZ3o8W0C2j8X9k3qvqkvsplZthlXEHnVefGisrt4Zik5xttc Oiz7mf8Bho1/XzTGx4VcrS3m7mAbeUQFOE6mIWWum2B1UxGO+5Om6LPJi5D48CDc6yqh0S lAD6nnrTn94ZWunFi6vgHuAcwRi2RGSfvM9LAKsTY4MpwHbJepCk4515OPV305WQD6S5Lf VMWv4vRT3Or/koZlRh1kCjNiif1S2PTQw/jcTtFAjcvsZg9Zwghx77NkjOXDIA== 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=1698174032; 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=DUgXnbn24b+KH9DHh442npdudfj+RcbkhPPcN1hz/CA=; b=ig1DH8heNPrkn0aqd1sfYjXcnK10NwoUFGq7hxj2vISsCkCzeRlvMvaeN16stFSioAQthQ QLfVifQVebJKkhlMVrNeDQMN5sBpReL7JJsq/rVNydIqL27we6BzpDEqJ+d9dDfA2gg/La mB7eFc5RK3Sun2zXbNPt5goUkTlAN/5WmFblPSu0bLS0PVAJoSpqKsVfBXViXCsR+B7XS8 19+AAMsplIdaTz4SzPWoqFCB+zEhdUoLNf714CtBILM7juuUzsnvPyPSDRS0J47YfeUntA H//q76Cr44f0rQHYOon9E3CUtjPzTWx+ZYGWGfQjYWmi108mueCRO5zsvHsMRQ== 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 4SFLww3CXqzZ4l; Tue, 24 Oct 2023 19:00:32 +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 39OJ0WeN033308; Tue, 24 Oct 2023 19:00:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39OJ0WeV033305; Tue, 24 Oct 2023 19:00:32 GMT (envelope-from git) Date: Tue, 24 Oct 2023 19:00:32 GMT Message-Id: <202310241900.39OJ0WeV033305@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: a6a75fc1378e - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: a6a75fc1378eaff4242c07015b3560664f596dc5 Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a6a75fc1378eaff4242c07015b3560664f596dc5 commit a6a75fc1378eaff4242c07015b3560664f596dc5 Author: Yuri Pankov AuthorDate: 2023-10-12 19:49:47 +0000 Commit: John Baldwin CommitDate: 2023-10-24 18:42:53 +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) --- 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 74ecfc353a86..fbbd5fc8b300 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 f2e25d252511..5adafd036ded 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 December 8, 2022 +.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