Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-11] src/sys/dev/pci



Module Name:    src
Committed By:   martin
Date:           Sat Jun 27 16:12:02 UTC 2026

Modified Files:
        src/sys/dev/pci [netbsd-11]: ld_virtio.c

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #333):

        sys/dev/pci/ld_virtio.c: revision 1.48

ld@virtio: Guard virtio_dequeue by virtio_vq_is_enqueued.

After triggering the DMA operation, or any previous virtio_dequeue,
virtio_vq_is_enqueued issues the necessary bus_dmamap_sync for
virtio_dequeue to observe any potential (new) result.

Normally this happens inside virtio(4) (in virtio_vq_intr) between
interrupt delivery and calling the virtqueue's done callback.  But
polling mode I/O operations (and dump operations) don't take that
path, so it is necessary to call virtio_vq_is_enqueued explicitly.

PR kern/60182: ld@virtio sometimes hangs up


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.44.2.1 src/sys/dev/pci/ld_virtio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index