git: 5d0488b29dc5 - main - virtio: Report feature masks on negotiation failure
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 15 Jul 2026 06:57:44 UTC
The branch main has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=5d0488b29dc5b3e8201d04cf7a015dce9e774d5d
commit 5d0488b29dc5b3e8201d04cf7a015dce9e774d5d
Author: Faraz Vahedi <kfv@kfv.io>
AuthorDate: 2026-07-09 20:01:20 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-07-15 06:57:40 +0000
virtio: Report feature masks on negotiation failure
Signed-off-by: Faraz Vahedi <kfv@kfv.io>
Reviewed-by: ngie
Pull-Request: https://github.com/freebsd/freebsd-src/pull/2319
---
sys/dev/virtio/pci/virtio_pci_modern.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sys/dev/virtio/pci/virtio_pci_modern.c b/sys/dev/virtio/pci/virtio_pci_modern.c
index bdd9cacd505e..4a4fedeb194d 100644
--- a/sys/dev/virtio/pci/virtio_pci_modern.c
+++ b/sys/dev/virtio/pci/virtio_pci_modern.c
@@ -464,7 +464,10 @@ vtpci_modern_finalize_features(device_t dev)
status = vtpci_modern_get_status(sc);
if ((status & VIRTIO_CONFIG_S_FEATURES_OK) == 0) {
- device_printf(dev, "desired features were not accepted\n");
+ device_printf(dev, "desired features were not accepted "
+ "(host %#jx, written %#jx)\n",
+ (uintmax_t)sc->vtpci_common.vtpci_host_features,
+ (uintmax_t)sc->vtpci_common.vtpci_features);
return (ENOTSUP);
}