virtio: use modern mode for transitional device by default

This patch changes the default value of the loader tunable
hw.virtio.pci.transitional to 1. This means, virtio uses the
modern mode for transitional devices by default.

The return values of vtpci_modern_probe() and vtpci_legacy_probei()
were chosen to prefer modern mode, but hw.virtio.pci.transitional=0
prevents modern mode.
Setting hw.virtio.pci.transitional to 1 by default seems a better fit.

Reviewed by:		tuexen
Differential Revision:	https://reviews.freebsd.org/D55894
This commit is contained in:
Timo Völker
2026-04-04 16:49:54 +02:00
committed by Michael Tuexen
parent 39c44fc55f
commit 0b39d72d04
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ use the legacy
.Nm
driver
.Pq 0 .
The default value is 0.
The default value is 1.
.El
.Sh SEE ALSO
.Xr virtio_balloon 4 ,