mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 07:22:34 +00:00
Current virtio-rng does a entropy request before DRIVER_OK, this violates the spec: virtio spec requires that all drivers set DRIVER_OK before using devices. Further, kernel will ignore the interrupt after commit8b4ec69d7e("virtio: harden vring IRQ"). Fixing this by making device ready before the request. Cc: [email protected] Fixes:8b4ec69d7e("virtio: harden vring IRQ") Fixes:f7f510ec19("virtio: An entropy device, as suggested by hpa.") Reported-and-tested-by: [email protected] Signed-off-by: Jason Wang <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Laurent Vivier <[email protected]>