From nobody Wed Jul 15 06:57:43 2026 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 4h0Rnm5vNzz6l0Fc for ; Wed, 15 Jul 2026 06:57: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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h0Rnm4t0Vz3vWt for ; Wed, 15 Jul 2026 06:57:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784098668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4Aw32i4gNI9YlvFeZMQGKg0MPsCf8m9uZ4UZOp4o8p0=; b=GUcKwNEF05+8yFyeZDTG3SvcRYPG3d9kb7zIAjPZXDCLcjfaVbm9YNw9KiXl5ekjndFmj8 s/jUIIX88vNNx+WQDIR/lm9GwqbMSx0PB8gZEzvJTdX1b7v65cDZdwS5E4UYCX+e2U9z/b 2xusOX3ZZC1JhCImii84VOJO4Ip8Xnq6z+WBJqyK4HvSQfmxQdB+4GaMvUvZZcSuDmjylG HWomSRWh++i4dmoX6MtjeCr2qFG5rIo84ND3tCzj1gLhcOyHGGWiaA7c1Y09cEd3lOyJV0 duKifL9uW/j/F8fAzS17eLOYyE7kbeNR8UapVNTslxQCzg6VG2oGRcJMVjD4gQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784098668; a=rsa-sha256; cv=none; b=jcCgKnAxL/mBl9F9haN2mMeztYpPihbowbreAOrRgw4Q6qS13MVJZiN6iNdzsPFYkUDpda 4xbhpk6fCWAqnSj0wKvaHrZdPfi6H4j41FH9K35e0Q3X0g5bgyULvX3oa/3xDJ0QDIdCC9 +Iq+1FCoQemnd/0ZQvk82DB1DsLMyH0SkpXXv6jx9KvN37whiDt+plmqrlO0O5Q5WKMplB iqKGkUE831g7hrRvmOVqd84Clhm3GUXSp5ciQbiHoIatCyIaYaKE0M0ed5rGA9rG2WYbYb cI/rObJsy7WrE25K13vWUqq4d3PmcDtzulsX1ph6weP7h0pzFx/t3JKDcJ1EAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784098668; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4Aw32i4gNI9YlvFeZMQGKg0MPsCf8m9uZ4UZOp4o8p0=; b=SlnT+ZXAr/UFEtrV8eNV/K823RXggPhPD+Jf69Bxo58fgskOYkMQz8fGT76AfQvIo8Z2wQ AuRR7MOHyYuf4tfVmpicy6ao31NzXMFsTqOpjhEHnFSrA4FnaJH8DceuPu0UG8XpCrKWEg 2HNMkgemUyl9W83KjIUVrku/2hw001hrrlBVFoJpGBjA1PC8yvfoTHTs6p469/gcuWGx79 KDpb/L/KUw1xzDl2QKNkilkhsxQz/EW+lH+oGGnwYTrU47/Q1x8hXv4bcqS1Hz+OmZY2Dz ra/u0MuaQNTgSYFDE5giveaaC4gRqUNgr+nYJ4XZevbnbpH8hn9hJfgO+UAutg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h0Rnm3qd0z4cs for ; Wed, 15 Jul 2026 06:57:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 333f8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 15 Jul 2026 06:57:43 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Faraz Vahedi From: Enji Cooper Subject: git: f9a4dd60b0cf - main - virtio: Add feature bit definitions up to VirtIO v1.3 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 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: ngie X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f9a4dd60b0cf4ce920a83b125f81ee401fc471ce Auto-Submitted: auto-generated Date: Wed, 15 Jul 2026 06:57:43 +0000 Message-Id: <6a572f67.333f8.5f334585@gitrepo.freebsd.org> The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=f9a4dd60b0cf4ce920a83b125f81ee401fc471ce commit f9a4dd60b0cf4ce920a83b125f81ee401fc471ce Author: Faraz Vahedi AuthorDate: 2026-07-09 20:00:07 +0000 Commit: Enji Cooper CommitDate: 2026-07-15 06:57:40 +0000 virtio: Add feature bit definitions up to VirtIO v1.3 Signed-off-by: Faraz Vahedi Reviewed-by: ngie Pull-Request: https://github.com/freebsd/freebsd-src/pull/2319 --- sys/dev/virtio/virtio.c | 8 ++++++++ sys/dev/virtio/virtio_config.h | 28 ++++++++++++++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/sys/dev/virtio/virtio.c b/sys/dev/virtio/virtio.c index be5edcafa7ff..a032bfc20499 100644 --- a/sys/dev/virtio/virtio.c +++ b/sys/dev/virtio/virtio.c @@ -87,6 +87,14 @@ static struct virtio_feature_desc virtio_common_feature_desc[] = { { VIRTIO_F_BAD_FEATURE, "BadFeature" }, /* Legacy */ { VIRTIO_F_VERSION_1, "Version1" }, { VIRTIO_F_IOMMU_PLATFORM, "IOMMUPlatform" }, + { VIRTIO_F_RING_PACKED, "RingPacked" }, + { VIRTIO_F_IN_ORDER, "InOrder" }, + { VIRTIO_F_ORDER_PLATFORM, "OrderPlatform" }, + { VIRTIO_F_SR_IOV, "SRIOV" }, + { VIRTIO_F_NOTIFICATION_DATA, "NotificationData" }, + { VIRTIO_F_NOTIF_CONFIG_DATA, "NotifConfigData" }, + { VIRTIO_F_RING_RESET, "RingReset" }, + { VIRTIO_F_ADMIN_VQ, "AdminVq" }, { 0, NULL } }; diff --git a/sys/dev/virtio/virtio_config.h b/sys/dev/virtio/virtio_config.h index 02765490ed27..ce6e96a223d4 100644 --- a/sys/dev/virtio/virtio_config.h +++ b/sys/dev/virtio/virtio_config.h @@ -63,10 +63,10 @@ * The guest should never negotiate this feature; it * is used to detect faulty drivers. */ -#define VIRTIO_F_BAD_FEATURE (1UL << 30) +#define VIRTIO_F_BAD_FEATURE (1UL << 30) /* v1.0 compliant. */ -#define VIRTIO_F_VERSION_1 (1ULL << 32) +#define VIRTIO_F_VERSION_1 (1ULL << 32) /* * If clear - device has the IOMMU bypass quirk feature. @@ -77,6 +77,30 @@ */ #define VIRTIO_F_IOMMU_PLATFORM (1ULL << 33) +/* Support for packed virtqueues. */ +#define VIRTIO_F_RING_PACKED (1ULL << 34) + +/* Device may behave as if IN_ORDER was negotiated. */ +#define VIRTIO_F_IN_ORDER (1ULL << 35) + +/* Memory accesses are ordered by the platform. */ +#define VIRTIO_F_ORDER_PLATFORM (1ULL << 36) + +/* Device supports Single Root I/O Virtualization. */ +#define VIRTIO_F_SR_IOV (1ULL << 37) + +/* Driver passes extra data in device notifications. */ +#define VIRTIO_F_NOTIFICATION_DATA (1ULL << 38) + +/* Driver uses the data provided by the device as a virtqueue identifier. */ +#define VIRTIO_F_NOTIF_CONFIG_DATA (1ULL << 39) + +/* Driver can reset a queue individually. */ +#define VIRTIO_F_RING_RESET (1ULL << 40) + +/* Device supports an administration virtqueue. */ +#define VIRTIO_F_ADMIN_VQ (1ULL << 41) + /* * Some VirtIO feature bits (currently bits 28 through 34) are * reserved for the transport being used (eg. virtio_ring), the