From nobody Wed Jul 15 06:57:45 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 4h0Rnk20KSz6l0Hc for ; Wed, 15 Jul 2026 06:57:46 +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 4h0Rnj6VCrz3vGT for ; Wed, 15 Jul 2026 06:57:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784098665; 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=vUoNcHxW86Nuwg8gS5OFYrlJYVAfCtMst7seKbdQSpI=; b=ZG4jHoaFH9HWHe6OJYohE4lvJWd+GomX/qx8/oEjRC8CPH8fYc3F4nuTtQd84pKtGBbHUt 9m1AP4kVwaqDrfDl2N7K823MtiKe0BgGowCHMr0aswhlb39u5YpDxGeIIE1u9S7c0DqO81 /PDIbNPxtq2UqVIsMLW8i+Z2aEXXSrs5+hv97w3HDdbPQmbCfJwQ1wW6no8LkOx0onDI1D 91YObG3YEufqg7+JZuQjQc1l3y0yv5SgiIbNjuRncbU9LwGgHAkT9FW1P6Mzmj4DDLRx51 CunqHhbaRL8VCy+sml2zdOWV9uw2pun50Y9qn4r+sw0Ers2QJORGDeQHkmUCeg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784098665; a=rsa-sha256; cv=none; b=oifIlPdFephAolb6O1OWuhTQFCYcOUxIla7sxyIKPmbAhoSw5zgCanMNPOVhZ5hjdrEwgF koECYnQvT9II59b0Ue549tCBFH//LomnPBEC80t1TGHjyx1MtabzKR3/RdKO2wl97gaIiz y+/d8VKnpAE8AiCLKYnYSnH5THp97wBsXECMC9HvKAxO8e1etkoxyZhHtIdjKQgZ/cTUPU 7j/hR8GX/HuEy1lLTXXv6gKNMHaBOr+eNxMrZE1CfFqQNCmC7LRBAEYDxskQv/1AZMhG9O b0sO+/pNIsTUgOYw1mevj+nR7IngcG7UY1nv6jrThYMFVoL+pNLKax4hyscEKA== 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=1784098665; 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=vUoNcHxW86Nuwg8gS5OFYrlJYVAfCtMst7seKbdQSpI=; b=BvPvMvjoNrPbwhPF+MlmusAaVgtgJive9NzFAYMmisQ4VyAg7VSfPFp6LTXJnlM0gJzrQb u25zKiNo2ci2g5WemFChB3lKsnZFV49Z2rRrZGc+M8jdCpFeUAt8qj345hd/NwNcBWc+sZ 2BLPsbhdi9qppqekSJBxwZHT8sNN/2onH5NdZxecIAS93eU793+aqD+fM79jr6P5QBNFZ+ w9KoUvWkEiFkrgJ2iV1Qju9KzKKG01YbOzK1J3CQG5udrfDRU1s4+vS9SWhKEGm/vjvxDC xJI45omkphiUNLZzwg7WxhwM3ioko9phh6bsO2A5U+5mhHLn3N7ovnRaGZEeAA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h0Rnj56ysz54t for ; Wed, 15 Jul 2026 06:57:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 33435 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 15 Jul 2026 06:57:45 +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: 8bdc312dac55 - main - virtio: Accept VIRTIO_F_RING_RESET in the modern PCI transport 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: 8bdc312dac550c292c58a6a3243b08bc8c944b74 Auto-Submitted: auto-generated Date: Wed, 15 Jul 2026 06:57:45 +0000 Message-Id: <6a572f69.33435.3a788f2a@gitrepo.freebsd.org> The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=8bdc312dac550c292c58a6a3243b08bc8c944b74 commit 8bdc312dac550c292c58a6a3243b08bc8c944b74 Author: Faraz Vahedi AuthorDate: 2026-07-09 20:01:44 +0000 Commit: Enji Cooper CommitDate: 2026-07-15 06:57:40 +0000 virtio: Accept VIRTIO_F_RING_RESET in the modern PCI transport Accept per-virtqueue reset when the device offers it, alongside the V1 flag. Negotiating the feature merely permits the use of per-virtqueue reset and imposes no obligation on a driver that never uses it, while refusing capability-only transport features can make strict devices reject the feature set altogether. No functional change on hosts that do not offer RING_RESET. Signed-off-by: Faraz Vahedi Reviewed-by: ngie Pull-Request: https://github.com/freebsd/freebsd-src/pull/2319 --- sys/dev/virtio/pci/virtio_pci_modern.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/dev/virtio/pci/virtio_pci_modern.c b/sys/dev/virtio/pci/virtio_pci_modern.c index 4a4fedeb194d..6732f9ee610f 100644 --- a/sys/dev/virtio/pci/virtio_pci_modern.c +++ b/sys/dev/virtio/pci/virtio_pci_modern.c @@ -441,6 +441,14 @@ vtpci_modern_negotiate_features(device_t dev, uint64_t child_features) */ child_features |= VIRTIO_F_VERSION_1; + /* + * Accept per-virtqueue reset if the device offers it: negotiating + * the feature carries no obligation for a driver that never uses + * it, while declining capability-only transport features can make + * strict devices refuse the entire feature set. + */ + child_features |= host_features & VIRTIO_F_RING_RESET; + features = vtpci_negotiate_features(&sc->vtpci_common, child_features, host_features); vtpci_modern_write_features(sc, features);