From nobody Mon Dec 29 18:44:30 2025 X-Original-To: dev-commits-src-all@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 4dg4rb0zT4z6MBD7 for ; Mon, 29 Dec 2025 18:44:31 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dg4rZ5yYpz3RY2 for ; Mon, 29 Dec 2025 18:44:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033870; 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=kk8kic7uiDl9EQ18hGZu7AMXDFuoy3x+0m8tQv8U0b8=; b=Ehs9KhlJj922T81GrKPL2ZOom0tVyicTXFspLlzO4CY9EIJ6mDblUdVRcXFGQF+gCeWOaZ Beb0Y6uuhD5JFOIocHtkqPjKK6jDMhb15+b5TFPtoi/EtfMRP0B2PYzQ5vKBdIzqw8PV0P KApI+tWJUf6GsYvVEpNvZht60dsA9QJNvGzJLN/z/IHMDHMDZjFyiC6HZB5gR9JsXX96m6 Jf47gbRYg12kg3nL65NTTz/oF0Ry+jWsX6zPWgar9eu2vNfGZWe6SE/sCzEUYk2R3KAR8b +0nezEfDAydzhrs+Kr9DWgJJncaTrBjXTfOy2ziOCRl3LquQKIhwl/u3YKxsYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767033870; 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=kk8kic7uiDl9EQ18hGZu7AMXDFuoy3x+0m8tQv8U0b8=; b=VnKU0tkTmFZBvQd6gIh2Yalq4VUBk6feYW028dB5VogQ21A18E8myOtSK4b6UnHvVCTWW8 V/O4wTsLcqQnMFVGYBR4SIQNRbNUynKURWh0e/8/Y8NC2Gvn0X8Gtis3dbDRFG2d5+o+Jy t3L2xNda5dVEQrFe/ZnCNM6YIhkDap67A4gyqO6gOq+6/JrQd7kCf2j5IaW1n20/2oYE66 pBdZX33a3g3tGVy4K4Xp5K5AM+SPNoACoMXKDdLZQVBBHQlbf85rRjU++P8q+RLHG60Stj CB+zKz7P2hMdh3e68H6KfnaVIk90A+X3VbYaZgzwZAYb4F5cw6LtokFQAJC0DA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767033870; a=rsa-sha256; cv=none; b=ZgFiLCwaQpAtn710+3z0T7ovlniZFS0nL0s96YNvz8xW1591X6YyEahzo/gSB5xv82DN2L WnDMKX+ZsY4rmvSSJvdbfiGkUQmFq12sHlP1/lhKwlwVIVtCv1qgpKKqTZ/7PhK1qLxgEy Cpbd64jBKjXpjEabK2rIO3B8BAJxm66Jnq961Maz4nrJF4/N/RxcxyttAoDvvRABTmMee/ pFwvOLjLj1ctQenweWPSsYytZJ3IL8yEtEF8dxHLB37cHhUnnF6C8o0ByhmpoGYJnODj46 dyhPbnTwydDBQ3+GM+7uCc37gOd6Uuv8Gq3ISox8uz2mdQul9WbEQa5Iv7Xs9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dg4rZ5H1VzBZx for ; Mon, 29 Dec 2025 18:44:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3627e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 18:44:30 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: 108f057e50ca - stable/14 - bhyve: Document that MAC address has to be unicast List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: michaelo X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 108f057e50cafdbec62785a2c4a53fde6142b99f Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 18:44:30 +0000 Message-Id: <6952cc0e.3627e.36646102@gitrepo.freebsd.org> The branch stable/14 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=108f057e50cafdbec62785a2c4a53fde6142b99f commit 108f057e50cafdbec62785a2c4a53fde6142b99f Author: Michael Osipov AuthorDate: 2025-12-26 13:40:37 +0000 Commit: Michael Osipov CommitDate: 2025-12-29 18:41:10 +0000 bhyve: Document that MAC address has to be unicast bhyve accepts any MAC address even foreign as long it is a unicast one. Reviewed by: ziaee MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54372 (cherry picked from commit e1bfd541c7cdee1e184cacb2ea3bbebb3a500dfb) --- usr.sbin/bhyve/bhyve.8 | 3 ++- usr.sbin/bhyve/bhyve_config.5 | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/usr.sbin/bhyve/bhyve.8 b/usr.sbin/bhyve/bhyve.8 index 9f2934e27c6d..a6e1f772a81f 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 23, 2025 +.Dd December 26, 2025 .Dt BHYVE 8 .Os .Sh NAME @@ -429,6 +429,7 @@ If is not specified, the MAC address is derived from a fixed OUI and the remaining bytes from an MD5 hash of the slot and function numbers and the device name. +If specified, it must be a unicast MAC address. .Pp The MAC address is an ASCII string in .Xr ethers 5 diff --git a/usr.sbin/bhyve/bhyve_config.5 b/usr.sbin/bhyve/bhyve_config.5 index c2c13c845117..bf9920269d38 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -492,8 +492,10 @@ Intel e82545 network interfaces support the following variables: .It Sy Name Ta Sy Format Ta Sy Default Ta Sy Description .It Va mac Ta MAC address Ta generated Ta MAC address. -If an explicit address is not provided, -a MAC address is generated from a hash of the device's PCI address. +If not specified, the MAC address is derived from a fixed OUI, and the +remaining bytes from an MD5 hash of the slot and function numbers and +the device name. +If specified, it must be a unicast MAC address. .El .Ss Frame Buffer Settings .Bl -column "password" "[IP:]port" "127.0.0.1:5900" @@ -732,8 +734,10 @@ VirtIO network interfaces support the following variables: .It Sy Name Ta Sy Format Ta Sy Default Ta Sy Description .It Va mac Ta MAC address Ta generated Ta MAC address. -If an explicit address is not provided, -a MAC address is generated from a hash of the device's PCI address. +If not specified, the MAC address is derived from a fixed OUI, and the +remaining bytes from an MD5 hash of the slot and function numbers and +the device name. +If specified, it must be a unicast MAC address. .It Va mtu Ta integer Ta 1500 Ta The largest supported MTU advertised to the guest. .El