From nobody Fri Dec 26 16:35:48 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 4ddB7S54Lnz6Lqc6 for ; Fri, 26 Dec 2025 16:35:48 +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 4ddB7S2lJWz4C9J for ; Fri, 26 Dec 2025 16:35:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766766948; 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=bGAuXyngWccgE4bT5hA/qdCkg8OJdMMedAhD3MNkfwM=; b=AES2sKl44D2Bx1h5N+flBdSFgYEAP9BASXi7CT5uHMjnxJIOeUNMUzPv6RJBvR9mXYgNt/ fedSmxFR7nnvYbqhTsBRSv8gzm2ejhQgj3Ld7e0ucgZvp8oldaG9HlwHwGbYW0c+KFHMAv PPgK/2YGQug26FHQtEWOafAjFxKeOiGzuSQj9UD1UMw39rfv1FzBeuTf2QVhQcPv3hirXo ebYusYt0QttUZZnSuqaNRgvC3gIoy2fDioIDcFqDeDu9VcE/G5CkdfkFcr1ymVYG2JHxSL wecbsarKPxh8+bxzE6OuvVdmBV1w+vrRCQubeMff8u0/m9QyvAtV+RKtRXdcdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766766948; 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=bGAuXyngWccgE4bT5hA/qdCkg8OJdMMedAhD3MNkfwM=; b=CSP6AcwcAlWayuYu6n+cGQuwOhXnI3wG1V5WD8MHoX00/8+mA+GKOVOdKQdWeUDsHpn/1l nh7vXmpe81mPsV1eLEuSTQMzKVwXTj+i+Yx5CNsKxwlfhsK8/upV09hUekKk0UxHtDyVwU MVvo2QRFlRJmNHaya4q+PRZh5Ejs12ophrJjh+iaM0cJJqUmST+IYf+AIXtTT7aDEkR5M+ eUf70HNKapgq7gyRlkj1bi/HwDoi68jH5vLtMnk+XiZVeTJ25iosE5JZHtdPDC9F8pj0Xd OF8dH0PFBypQ3TeBkZvl4sVvYJrOVod7uXafJCa8crukXJ5a+45lqIADzoAJMA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766766948; a=rsa-sha256; cv=none; b=K3QgtqEUFUzb7EyaYXA2xHeXFHV3eihhKaWlC3wYOfN8iZAgQFw3BZRiW0p/EHP4vYzTrr dpLaNIrFGqlkltRYB0acKmrboUqFdTvOaBLrWYqeTbCLWaFuxM+LblD4y1MFfOr1hxTbHs uosCnHaLSsgSKrveUsxFqmS/a0PMHPz3UVoTjOtW0s8cpRZL1MYJZiiqmgXj+0U1GBnYb0 MiWE9IpDo1apZfp5oNokNoAM5Is8czvVy8++tPH6PqGl1XxWuWutKdNFVg2LxlyhBp87XC qQZjGsuS3zvsvwGwU9c8uix9Ogryf1KXiHvMKRChM/X5Ko5o4aOEMURiAUx65A== 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 4ddB7S1p2Kz57h for ; Fri, 26 Dec 2025 16:35:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 22662 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 26 Dec 2025 16:35:48 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Osipov Subject: git: e1bfd541c7cd - main - 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/main X-Git-Reftype: branch X-Git-Commit: e1bfd541c7cdee1e184cacb2ea3bbebb3a500dfb Auto-Submitted: auto-generated Date: Fri, 26 Dec 2025 16:35:48 +0000 Message-Id: <694eb964.22662.33878fb5@gitrepo.freebsd.org> The branch main has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=e1bfd541c7cdee1e184cacb2ea3bbebb3a500dfb commit e1bfd541c7cdee1e184cacb2ea3bbebb3a500dfb Author: Michael Osipov AuthorDate: 2025-12-26 13:40:37 +0000 Commit: Michael Osipov CommitDate: 2025-12-26 16:35:20 +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 --- 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 aafa4b81a076..d3b067509ced 100644 --- a/usr.sbin/bhyve/bhyve.8 +++ b/usr.sbin/bhyve/bhyve.8 @@ -25,7 +25,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 @@ -551,6 +551,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 b511d5ef6bfd..4ead94690d91 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -517,8 +517,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" @@ -746,8 +748,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