HomeFreeBSD

virtio_net: Use bus_dma for command/ack buffers

Description

virtio_net: Use bus_dma for command/ack buffers

While the majority of virtio platforms will be fully coherent, some may
require cache maintenance or other specific device memory handling (eg for
secure partitioning). Using bus_dma allows for these usecases.

The virtio buffers are marked as coherent; this should ensure that sync
calls are no-ops in the common cases.

Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D55564

Details

Provenance
sarah.walker2_arm.comAuthored on Feb 27 2026, 2:17 PM
andrewCommitted on Apr 27 2026, 11:37 AM
Reviewer
andrew
Differential Revision
D55564: virtio_net: Use bus_dma for command/ack buffers
Parents
rGc16c95192f01: virtio_net: Use bus_dma for rxq/txq buffers
Branches
Unknown
Tags
Unknown
Reverted By
rGc8167ebb742c: Revert "virtio_net: Use bus_dma for command/ack buffers"