From nobody Mon Dec 29 18:52:03 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 4dg51H5vSCz6MBpn for ; Mon, 29 Dec 2025 18:52:03 +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 4dg51H30B4z3T95 for ; Mon, 29 Dec 2025 18:52:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767034323; 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=xFLDZ2oYt4LoS/hgNaiwAsEJSkQtMQ2bLqt4liHtKUM=; b=xaMyQ2xvSzsoUs/eXGIqQfptrXGdRbho1JNnUxYNQrKpqgRtS//ESXJIez7A5pyfiHVP2R oBn+YDdNKKj9/FcWrlPKsJGqcMYAcCU3+CO9lucW+jFdAf5Zil5LHqODE6P6hpFFakTRqn aMsL9JmH2GRAL1b1pfsbMR09r/MW7cA+ZBnrwBD++fUWcOxhQ8PsRKgFLpxaa2VLmD40HJ SS/gFwUSNYjU6xqcSu+7/4sB9124jMGXLsah5oUlzY2FxA9sOJJk+qMatjF/X27YxH+Pax 0gjiPTQRFCPV8GzifMB43dtj9wsrRnNRpveHhXNP8phhOiVUSMOxEWio/bdySg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767034323; 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=xFLDZ2oYt4LoS/hgNaiwAsEJSkQtMQ2bLqt4liHtKUM=; b=x7VYJeksTjxrVIs6Mi2JAkZTlftfHEJVzYdIuWYp+gMYgqpWx6zo9IhqxolvTUxnMGm8fl FRpk12ceWKg11l1IbZgEZpxHbtK4GaUjbkB3nKp+PbENODlKuzHdYxJdU0NXT3gReiC0Fq 9qb9zWLRz+B4qW0n6Wl3+F+2RizjWjJqZ0AFYQ0Nzp0puBqGXgXS5wfdhUFokDU9J6OcdP cMY2viQId3QSm7HzcWmRCCyMB3cKg0IJWzmZTwBAMVmHu0gYyeQICXNJiaRrZVL++m3H0J EHWtbiJGNCUhYOYSxN8p6X5+MJrbrYcH7xSPZqPKiNvtXWfbvSB/PtMFA7/HNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767034323; a=rsa-sha256; cv=none; b=k2+9b2kEQrN9IhiWmwjuDuRJeEr7gmc98c7E1+tVtajwq/ztPKLBC54J2YXMlhwm/QUzIO bRSe5F3A2M0zku9e0Ut7P5nm26Ls/2bJyo42APB9MWq/n9vqzpimxBLzT6RCpN1mpkjRs1 7DSoSfG2BeKYXckzfxDGhAubFFvlrnAEnX1JfBow0BHaYCa4SiWzdsQ06QvQvPYMq9ww9p NEaBSHQ33M6SbdRuF0K6G8wjZZ3E9qVRylA3iLW/RTWPlYx5ElW319GxYABwMhbtedObUy yo2E7uqNWG2gjJL8gER9pv0Rr3nQ5Nn5XpP3AwePaw+XrP5af6snqGzJSXkQ1Q== 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 4dg51H2bQlzBM1 for ; Mon, 29 Dec 2025 18:52:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 38272 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Dec 2025 18:52:03 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Osipov Subject: git: b4f84b19b482 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: b4f84b19b4826e8af2b20af95c5f2b63a826f40d Auto-Submitted: auto-generated Date: Mon, 29 Dec 2025 18:52:03 +0000 Message-Id: <6952cdd3.38272.1b86a1b1@gitrepo.freebsd.org> The branch stable/13 has been updated by michaelo: URL: https://cgit.FreeBSD.org/src/commit/?id=b4f84b19b4826e8af2b20af95c5f2b63a826f40d commit b4f84b19b4826e8af2b20af95c5f2b63a826f40d Author: Michael Osipov AuthorDate: 2025-12-26 13:40:37 +0000 Commit: Michael Osipov CommitDate: 2025-12-29 18:51:50 +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 f3cec8e121a5..aba7b1767e48 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 @@ -423,6 +423,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 26387da0d59e..5b77caa75726 100644 --- a/usr.sbin/bhyve/bhyve_config.5 +++ b/usr.sbin/bhyve/bhyve_config.5 @@ -465,8 +465,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" @@ -674,8 +676,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