]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/virtio-rng.c
virtio-rng: process pending requests on DRIVER_OK
authorPankaj Gupta <pagupta@redhat.com>
Wed, 27 Jun 2018 11:25:20 +0000 (16:55 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 28 Jun 2018 01:46:16 +0000 (04:46 +0300)
commit5d9c9ea22ab4f3b3ee497523e34b6f4d3281f62d
tree274fc08a23178edd6dd034552654049632e6e1e4
parent2073bd43bd40ff6fc36f293a569bff113c0923d4
virtio-rng: process pending requests on DRIVER_OK

virtio-rng device causes old guest kernels(2.6.32) to hang on latest qemu.
The driver attempts to read from the virtio-rng device too early in it's
initialization. Qemu detects guest is not ready and returns, resulting in
hang.

To fix handle pending requests when guest is running and driver status is
set to 'VIRTIO_CONFIG_S_DRIVER_OK'.

CC: qemu-stable@nongnu.org
Reported-by: Sergio lopez <slopezpa@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-rng.c