opnsense-src/sys/dev/virtio
John-Mark Gurney b7f5e99347 virtio_random: Pipeline fetching the data
Queue an initial fetch of data during attach and after every read
rather than synchronously fetching data and polling for completion.

If data has not been returned from an previous fetch during read,
just return EAGAIN rather than blocking.

Co-authored-by: John Baldwin <jhb@FreeBSD.org>

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D41656

(cherry picked from commit f1c5a2e3a625053e2b70d5b1777d849a4d9328f2)
2023-10-11 08:10:32 -07:00
..
balloon sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
block sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
console sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpu vtgpu: Fix the physical memory size 2023-09-25 12:01:28 +00:00
mmio sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
network sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
pci sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
random virtio_random: Pipeline fetching the data 2023-10-11 08:10:32 -07:00
scsi sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
virtio.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
virtio.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
virtio_bus_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
virtio_config.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
virtio_endian.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
virtio_ids.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
virtio_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
virtio_ring.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
virtqueue.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
virtqueue.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00