Page MenuHomeFreeBSD

virtio: add loader tunables to sysctl
ClosedPublic

Authored by timo.voelker_fh-muenster.de on Feb 26 2026, 3:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 25, 9:04 AM
Unknown Object (File)
Wed, Mar 25, 9:03 AM
Unknown Object (File)
Sat, Mar 21, 12:09 PM
Unknown Object (File)
Thu, Mar 19, 7:37 AM
Unknown Object (File)
Thu, Mar 19, 7:37 AM
Unknown Object (File)
Fri, Mar 13, 6:10 PM
Unknown Object (File)
Thu, Mar 12, 3:08 PM
Unknown Object (File)
Wed, Mar 11, 10:21 PM
Subscribers

Details

Summary

virtio_pci uses two loader tunables that should be more visible. This patch adds these loader tunables to sysctl and describes them in the virtio(4) man page.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Feb 26 2026, 5:15 PM
share/man/man4/virtio.4
25

Please bump the date.

108

Isn't the default value 0 right now?

sys/dev/virtio/pci/virtio_pci_modern.c
198

Can this be shorter? Maybe:

If zero or non-zero, transitional VirtIO devices negotiate legacy or modern mode.
share/man/man4/virtio.4
59–60

At the bottom of mdoc(7) it links to the extended style guide maintained by our manpage compiler which states you use Sy for things which have no manual in this operating system, for visual consistency with Nm.

100

per style.mdoc(5)

105–108
This revision now requires review to proceed.Feb 28 2026, 8:04 AM
timo.voelker_fh-muenster.de added inline comments.
share/man/man4/virtio.4
59–60

I looked for an alternative to Xr. Sy is perfect, thanks!

108

Isn't the default value 0 right now?

Good catch!

sys/dev/virtio/pci/virtio_pci_modern.c
198

Sure. How about this one?

tuexen added inline comments.
sys/dev/virtio/pci/virtio_pci_modern.c
198

I like it.

This revision is now accepted and ready to land.Feb 28 2026, 9:20 AM
This revision was automatically updated to reflect the committed changes.