From nobody Thu Oct 12 19:51:37 2023 X-Original-To: dev-commits-src-main@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 4S60dP4kFDz4wqKW; Thu, 12 Oct 2023 19:51:37 +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 4S60dP48F9z3bJT; Thu, 12 Oct 2023 19:51:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697140297; 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=rkxUdzIPmBdLOwxWvqZm+nLNvVUD8rPjNANNEFmo0B0=; b=n2yLKu+xkMGDSzD4D8ivorZFoRXa/AVzd/ElauOizuayx+YKkp5sRpsf4PgPUwqpLzZqON 6utPapfoVMSKqEge3Zema4Ez4KJAhuEEZj5drvZ3tp8enGJ8+PjmAIbUzU5lUFcdim1gsp I0w/mGEi7ph6ZvKd5HwXdiKllVvScsN7VlW72RTme4l56p0HVcpSP8wDcAPAMBJ3kUbyHM b3gmo+kQwWqX2ErVp0fJj5TjkJhdG9Bcg8NWKGWayepnBwCn3Ncb3mxjDAo3VB6SIpeX3N YJS9aRlqdmuGCev5QYXLR9FPnr5f1l+D3FpNfU0OT7KIJ6JJNmDARyeFToac7w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697140297; a=rsa-sha256; cv=none; b=kCaucflxmTxnzhDnUve5IYfCUe9PA7fRgnFpMeuuQJ6ZfXThN8Pgzor9uUe2aTGnLtnw1f ajAAq06aSZekQIab65WrFy9b8Tm0BLprm6ZT3GuHLr0Wvyc+3/NSz/zC864Vq0W6wnxyOV x5sovt+ILrS2DfGjKbOuLZRbZFITZ/zAXCGxwPoJBuVbhsT4UgY/KmgV+Xuw2W22EfbRD/ oiERNCsDe6wBmOsunItE0jfqmabL/qMMCFiW7Nbpiho5VP1ROV29YjGxs/UK2EAs8399bG 040oHMaFhp8hKko+JwYrN7TjzdMCv1HxKLAyDG/gLueY0CHh8T+ajaEhgJzdvQ== 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=1697140297; 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=rkxUdzIPmBdLOwxWvqZm+nLNvVUD8rPjNANNEFmo0B0=; b=XBAsaCM4YXm89zgpzUhmT7ZSxS40VNSPKY7CJOx9Fibm64cQCb/uhuobS0034B0Tuapv20 g7TtxUBba30xFl+hyWnvp1v4TrUz+LGeoWsfLF+DuEd31YkF51cD+YL5ne53dCFUdxvk2w 5ANzsgqsmZp1Rf7/AQWaelL03pvi1ESzuVEE/q6NXG5bkbAcBx6oM7HAuT3RKJqKS9upXB PGy/IGdgeTeiIv6jcDiISeU6qbUVpR7hdT8jRmPXwMwbLx6/V04pMk0pqV0VjzqmrGGBic X/lejVQIyn5qIcYsebcXB+6weRGSNcFebqhx28+dsMVpQxBbV943XHfviPvmfA== 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 4S60dP3Bypz3P4; Thu, 12 Oct 2023 19:51:37 +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 39CJpbnk036959; Thu, 12 Oct 2023 19:51:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39CJpb5H036956; Thu, 12 Oct 2023 19:51:37 GMT (envelope-from git) Date: Thu, 12 Oct 2023 19:51:37 GMT Message-Id: <202310121951.39CJpb5H036956@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: da202b0fe616 - main - bhyve: Document the hw.vmm.maxcpu tunable and the current limit on vCPUs List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: da202b0fe616e9314739f01493ae310e37a36d8d Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=da202b0fe616e9314739f01493ae310e37a36d8d commit da202b0fe616e9314739f01493ae310e37a36d8d Author: Yuri Pankov AuthorDate: 2023-10-12 19:49:47 +0000 Commit: John Baldwin CommitDate: 2023-10-12 19:49:47 +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 --- 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 a07d312250b4..3cef95c816f4 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 October 9, 2023 +.Dd October 12, 2023 .Dt BHYVE 8 .Os .Sh NAME @@ -129,7 +129,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. @@ -143,6 +142,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