From nobody Tue Oct 24 19:00:18 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 4SFLwf2g9Xz4yMnb; Tue, 24 Oct 2023 19:00:18 +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 4SFLwf2CP1z4GMw; Tue, 24 Oct 2023 19:00:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698174018; 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=pzVmnGxYehtqkCaw5AIPI/g6qTcSuksJyy7flTbDc5k=; b=cMDLo1UfeUT/M1icvPZIiCkejV0Qr0eejwdDsm4hKw9SCmyzcGqXAepsDYFkoyHS5sClLy oIOnN22ZPhDlGMSmyaR4njlX3itGa+wAHZpR/rDrPH/ujHzDxdn+QxGPGnjqJZlUiOakwg FFv1/IsBqVGUU5a9RxXcoX/qDw84Q9i627XFlxa9sdXBRRjuTxlRTS7q8qk2mDKwT2Eieq iGW2jQ9fn/a0KCLu5lbNCInC+gZ4CIcviSKzX+7vUhod1IoBVhueruFs2rkbDosc7IT74A ZvYjfxvo6Ik2lndZE7xDAccZZmrP+e22+kD0gAbqgBTTiNB6S/yOxQ0QWfDwAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698174018; a=rsa-sha256; cv=none; b=BRPfjRxW9kc7s5GV7Vq+ga/xUaxzDUe6GrLafoZPTDloTHtd+BxxZPEwH5uVLHrlGiSXj2 vmLETFDZOeWP59koFhmZa1rn2mDlDuXHZsii0jiXPhkKJ9SCd7cHvv129u0u1KzDhFr8up ilzrYmaWJoWvvo42p6Z9VkUiSicLwIjzkGmqVApIw6xfDzwCsB7ufbL4jTqOa2OQ4PedQZ 1HBQMe3pNdfnZqHwtZZE8EjJLyMOXEC+rt67/YP3OvSzhKWdxSt9NnLkW35ig2v2UWhCVJ mioLegQeKPny/uqd4+AFmVXPU5YRzr8YLmMtCghFnNJOA5D1qehDA6U4tAjQQA== 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=1698174018; 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=pzVmnGxYehtqkCaw5AIPI/g6qTcSuksJyy7flTbDc5k=; b=bTmFsyMRJN9UWehHjweyN+A/MN5/oS1PQZmfzwcsMYU0lNJSrMfBN2q+12hmOcTo1NHH3d M+Ce2ojySWeOV/4WfeVEoRBBNTONEuu/W2ZbXVyNCc6pnxnH5qe03BHk+2lJ3nHE83QM/C BKxunPlVfAibz0THjsSipQZeZG6MEc4NMiv4R/zhBDCS0hHCQE9Y+oh00QHaYFFrPz8fJi cb4z2NNsVQfOVO9z538KtmtWzoDAnL0t6dOydHAWGdkjX0+eYtzrbYFHWnZ+uxFTgAvgei a8d/JmUaJOEu+loBZWzY9x9Mf0W5SDLwLdBsZKsUI/ZhjM9fSUO+EP8Z/J3MdA== 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 4SFLwf1GK2zZ4j; Tue, 24 Oct 2023 19:00:18 +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 39OJ0IlE032598; Tue, 24 Oct 2023 19:00:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39OJ0I9T032591; Tue, 24 Oct 2023 19:00:18 GMT (envelope-from git) Date: Tue, 24 Oct 2023 19:00:18 GMT Message-Id: <202310241900.39OJ0I9T032591@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: cfdb5e70adb3 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: cfdb5e70adb3614f70a35240eab89519a5536d2c Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=cfdb5e70adb3614f70a35240eab89519a5536d2c commit cfdb5e70adb3614f70a35240eab89519a5536d2c Author: Yuri Pankov AuthorDate: 2023-10-12 19:49:47 +0000 Commit: John Baldwin CommitDate: 2023-10-24 18:43:00 +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 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