From nobody Fri Sep 12 20:41:23 2025 X-Original-To: virtualization@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 4cNmYH5xrjz66T66 for ; Fri, 12 Sep 2025 20:41:23 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cNmYH5MSGz3Pcm for ; Fri, 12 Sep 2025 20:41:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757709683; 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: in-reply-to:in-reply-to:references:references; bh=vunmJ5DnoojSEMbgs7LFhDuPWyBzNckaEJuctOn0JQs=; b=x6hU06mo7OFZ2ZCHBDUpkXAx1imE/wES5DjW1PjmA3rKOabZxGnrP4RzY+n/rwS1aurdp9 mRNqQIEjyAlNAWjAgF1xlKmNX9ZTAnpjMBLA7c4O3fYKyfZXi/aUgPfqfQ0Z3oJsjQbhz9 o4RXOhjwRv7g6sJeCQ8rrzmvKM+aAt08Wov/h0iSCcUpCgDHne4InmUxVqfIf3O0JK0TCB qv5eGf+3RtzgI/mKqvXIh/IqEI3oO4qJipQAjztaZWwfIwqxHqYcx+zvzn/Dd9GzDEQog2 gUC3rvtAPsGmJ2ib9JiEd15IrXuxu//EbC+ia2TwzMpJjdlmEeKaGuKkjj5jmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757709683; 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: in-reply-to:in-reply-to:references:references; bh=vunmJ5DnoojSEMbgs7LFhDuPWyBzNckaEJuctOn0JQs=; b=A+NrsQa+XwHUGMJjmTRIGf+mqZoa2B3liQndQ4qyUtoS5hid5rWC8X4Z3FU0C2+KTkBx4U qa5i54kV2E12cGJQg94lqjDwmi8/j0hNLwDpcR8NkD13CvlOxt1Ti+ROxtribzWYepqUYB Td73IZBNhz+6WTK6+2OCBvftlpOU5OauZp4Bq0zmx0zgFwdZo1AWRy9Vo+spDplHRAFZRp gqFrWvQ1J02Ne+Y9t5QjaUvj8MObliRczqG5DHcnSiLzL5025P/9v9k9jt5xdqg7RhSXRG 61FcXjj4EhC//eMBbe1+nlKft0xUzPotlhlexBRy76WiAD1AmITys67EKedzDA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757709683; a=rsa-sha256; cv=none; b=f8htgROfoaHalAhkT+foIPXYnJh/8QrnHSZkMiyFl6SgG8rQWnmNV4DJBGKKwuRqRBgMiN 3C+0eTcctBB49GRv7KwLdE8a6Dq5Tf7wrzAZCD4p7mwbqTeuw79hTZzce1dJ8t84spKbtJ eGdX8cvcL7uXce8J8FPV7FXiylMj3/yIaPDc+fE1rsDD+Xj7nbFgnLjvKC+U82gc6hjLlj +Cku2MRrvbugGYCJfv0yDeR5k+wCppCOC9YWJggObmMpj9/qGzJcohYsYZpr/kK6QetNQM gsZ04DfXe9Kvb0LK7s5ZPVTGBNTaVeyjSAECDogkjDTZeX9NNn4M0XVcZfa1dQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4cNmYH4hxBz179g for ; Fri, 12 Sep 2025 20:41:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 58CKfNCS047735 for ; Fri, 12 Sep 2025 20:41:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 58CKfNvd047732 for virtualization@FreeBSD.org; Fri, 12 Sep 2025 20:41:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 289471] bhyve ARM64 16 vCPU Limit Date: Fri, 12 Sep 2025 20:41:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: 15.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jhb@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289471 --- Comment #3 from John Baldwin --- (In reply to Michael Dexter from comment #2) No. AMD64 originally used statically allocated arrays, e.g.: struct vm { ... struct vcpu vm_vcpus[16]; }; This is why a limit of 16 was hardcoded. The changes to amd64 to enable la= rger vCPU counts replaced these static arrays with dynamic arrays allocated at VM creation. arm64 support was added after these changes had been merged into amd64 and arm64 has always used the new dynamic arrays approach. On both amd64 and arm64 (and probably RISC-V, I haven't looked), the default limit on the number of vCPUs is the number of physical CPUs on the host.=20 However, that limit can be changed via the hw.vmm.maxcpu loader tunable. What behavior are you seeing with arm64 bhyve in your testing that looks li= ke a 16 vCPU limit? --=20 You are receiving this mail because: You are the assignee for the bug.=