From nobody Wed Sep 16 12:04:51 2026 X-Original-To: dev-commits-src-branches@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 4hlHcz4yMGz6t6VY for ; Wed, 16 Sep 2026 12:04:51 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hlHcz3hv1z4KKQ for ; Wed, 16 Sep 2026 12:04:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789560291; 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=CEBAhfzLOISVj8Nq105+HTIh2gu3d0NUM+iUUC7OrP0=; b=W3aDNRp+WnYRQCiXZvZN+8v4Wvjru6d6YuJ2aDfR0Tjqhpp6Yly/cfnPz8QZq56B4NU2+1 QZ0jxuRk97vF+q3XvWT4kW5CkBT9zUEjSXc6Jw29VcFspOu6X3cHOWCMddy7hGx4LR0Pt+ ASFg+C1T45Xj8eXOm74bx/2mLaIiYEADq1whh7eCqwp5uebLrFR1CdZdrO6HaEuXnLn2SQ ZdbcESmM/m6A9j+XNa5fn/WFgSLiQWKALYHUJPcaxntXWbVXjPeAJIq1J909EdoV5H69p6 TjlKdZUQuNiy9hHs6XUBj5hDeXAtbmZjKcmt+e1KRZb++ygcT4mQH2HXNoIgsA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789560291; b=Rc4uH0EcWJIp9ZuOcP0gj0d39Sy5ZyIgoI2jF0FpT0GdXOTPfizAy3LIlorQ1ngh/BwZ6+ eg6/ZvvWjKLlW2la3lO1RNUKvKY4zRpGuEQG4k0B3mLROommD+FNlWD2WHKlBFSXicJyVV pUaRJ7VDfGS30jokrUmdObo/m7ewiTlmuep26hb6qaxahlrQGExAW12AKLQsrmBgXSKP8q T9u3e384JZySirvBsfsNistc1q7SKuZQ22oCqEYwseIAMq7Dv1VtJAgMZHyhPLGNxgKO7R 8V8hfvIjeVqjVeunajYO04wVfLlboLdHkwYF6AbSEfiBsWUtm2i8SknbXHkInA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789560291; 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=CEBAhfzLOISVj8Nq105+HTIh2gu3d0NUM+iUUC7OrP0=; b=FTD1i36ZC5xPErBtUqTzRwEX7RfjeRUIww059us5Estsc5ekZdvzmZmWstPMqAMQlu2jY+ zh+xIMivWhw/hv6sjNe+0GU/2EKY/JK/Iyjjg/fxtOPmUjYqqA+LHDrVD5qkxrLM4SdxfW CHMJTCjuD3pr5WVmHh+7AACL/5Zb6kd455r3xnP8QNNkQZvvZ2MNnr27k1xEfIvnkOB5I5 q1LCuT7ynPRIyZauhPr5s+X0tABfiikj2/6RJkRytnHamkF3UshxJeQKPqQ0DHhBb/GgWN Ylx8SApprUF5Sw84yZQuWqB6syYtTen13YLo3N+g9I65FWS7P1XlyRaTjTr77w== 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 4hlHcz2mJRzmPY for ; Wed, 16 Sep 2026 12:04:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1f75f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 16 Sep 2026 12:04:51 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alexander Ziaee Subject: git: 2f3c0416c169 - stable/15 - virtio_blk.4: Canonicalize SYNOPSIS and HARDWARE List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 2f3c0416c16921e842a136d581f02146b09da2cd Auto-Submitted: auto-generated Date: Wed, 16 Sep 2026 12:04:51 +0000 Message-Id: <6aaa85e3.1f75f.6a1f6e07@gitrepo.freebsd.org> The branch stable/15 has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=2f3c0416c16921e842a136d581f02146b09da2cd commit 2f3c0416c16921e842a136d581f02146b09da2cd Author: Alexander Ziaee AuthorDate: 2026-08-29 18:55:12 +0000 Commit: Alexander Ziaee CommitDate: 2026-09-16 12:03:37 +0000 virtio_blk.4: Canonicalize SYNOPSIS and HARDWARE Also tag SPDX, and switch X to %d for consistency/clarity. MFC after: 3 days (cherry picked from commit 098adfcc1e17899565d7a47fe5750a372663d547) --- share/man/man4/virtio_blk.4 | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/share/man/man4/virtio_blk.4 b/share/man/man4/virtio_blk.4 index 64be2164d52a..74c7d11f6976 100644 --- a/share/man/man4/virtio_blk.4 +++ b/share/man/man4/virtio_blk.4 @@ -1,3 +1,6 @@ +.\" +.\" SPDX-License-Identifier: BSD-2-Clause +.\" .\" Copyright (c) 2011 Bryan Venteicher .\" All rights reserved. .\" @@ -29,20 +32,22 @@ .Nm virtio_blk .Nd VirtIO Block driver .Sh SYNOPSIS -To compile this driver into the kernel, -place the following lines in your -kernel configuration file: -.Bd -ragged -offset indent -.Cd "device virtio_blk" -.Ed +.Cd device virtio_blk .Pp -Alternatively, to load the driver as a -module at boot time, place the following line in +In .Xr loader.conf 5 : -.Bd -literal -offset indent -virtio_blk_load="YES" -.Ed -.Sh DESCRIPTION +.Cd hw.vtblk.no_ident +.Cd hw.vtblk. Ns Ar %d Ns Va .no_ident +.Cd hw.vtblk.writecache_mode +.Cd hw.vtblk. Ns Ar %d Ns Va .writecache_mode +.Cd virtio_blk_load="YES" +.Pp +In +.Xr loader.conf 5 +or +.Xr sysctl.conf 5 : +.Cd dev.vtblk. Ns Ar %d Ns Va .writecache_mode +.Sh HARDWARE The .Nm device driver provides support for VirtIO block devices. @@ -53,13 +58,13 @@ prompt before booting the kernel or stored in .Xr loader.conf 5 . .Bl -tag -width indent .It Va hw.vtblk.no_ident -.It Va hw.vtblk. Ns Ar X Ns Va .no_ident +.It Va hw.vtblk. Ns Ar %d Ns Va .no_ident .Pp These tunables disable retrieving the device identification string from the hypervisor either globally or per-device. The default value is 0. .It Va hw.vtblk.writecache_mode -.It Va hw.vtblk. Ns Ar X Ns Va .writecache_mode +.It Va hw.vtblk. Ns Ar %d Ns Va .writecache_mode .Pp These tunables determine the write cache mode globally or per-device. The mode can changed only if the ConfigWCE feature is negotiated. @@ -72,7 +77,7 @@ The following variables are available as .Xr sysctl 8 variables. .Bl -tag -width indent -.It Va dev.vtblk. Ns Ar X Ns Va .writecache_mode +.It Va dev.vtblk. Ns Ar %d Ns Va .writecache_mode .Pp The write cache mode of the device can be either writethrough (0) or writeback (1).