Files
freebsd-src/sys/dev
Kyle Evans 12f90bbd30 virtio_random: defer first enqueue until after DRIVER_OK
According to the virtio spec:

> The driver MUST NOT send any buffer available notifications to the
> device before setting DRIVER_OK.

DRIVER_OK isn't set until after attach completes, so defer the first
enqueue.  We haven't found any problems as a result of this to the best
of my knowledge: q35 and other devices that we *have* been used with
will apparently check when we go DRIVER_OK.

Tested with q35 virtio-random, which still works.

Reported by:	llm-postcr
Reviewed by:	kfv, markj
Fixes:	f1c5a2e3a6 ("virtio_random: Pipeline fetching the data")
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D61228
2026-11-05 15:53:30 -06:00
..
2026-09-18 16:09:32 -07:00
2025-11-26 23:19:26 -07:00
2026-10-09 23:07:02 +01:00
2026-11-04 13:20:40 +01:00
2024-06-16 16:37:25 -04:00
2026-09-18 14:53:39 -07:00
2026-09-30 14:41:12 +01:00
2026-11-02 18:31:51 +00:00
2026-09-18 16:10:30 -07:00
2026-09-21 19:43:31 -03:00
2025-06-11 17:39:02 +01:00
2025-08-13 14:14:00 +03:00
2024-01-10 19:20:26 +01:00
2026-07-13 16:40:42 -03:00
2026-10-20 15:30:38 +00:00
2026-11-05 11:55:28 -05:00
2023-11-26 22:23:30 -07:00
2026-11-05 11:55:28 -05:00
2025-06-11 17:39:02 +01:00
2026-01-12 00:58:11 +00:00
2023-12-28 13:31:56 -05:00
2026-11-05 11:55:28 -05:00
2026-01-12 00:58:11 +00:00
2025-07-05 11:35:53 +03:00
2026-10-13 19:36:17 +01:00
2026-09-18 14:53:39 -07:00
2025-08-13 14:14:00 +03:00
2024-01-10 19:20:31 +01:00
2026-10-28 13:06:58 +00:00
2025-08-13 14:14:00 +03:00
2024-01-10 19:20:34 +01:00
2025-06-11 17:39:02 +01:00
2026-05-12 17:54:40 +01:00
2026-02-17 15:45:13 -05:00
2026-10-30 18:41:13 -07:00
2025-08-13 14:14:00 +03:00
2026-10-13 18:31:50 +02:00
2025-06-11 17:39:02 +01:00
2025-11-07 15:23:42 -08:00
2026-02-17 15:45:13 -05:00
2024-11-04 20:31:16 -05:00
2024-06-16 16:37:26 -04:00
2026-10-20 09:34:03 -05:00