Files
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
..
2024-04-11 09:58:56 +00:00