]> git.ipfire.org Git - thirdparty/qemu.git/commit
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 Roth <mdroth@linux.vnet.ibm.com>
Wed, 18 Jul 2018 21:11:30 +0000 (16:11 -0500)
commitd109f8eb7edcdaceb27a49487ee4e579067cf914
treed1cbf1f185ccc7f094822061e16b9175b5866fa8
parent2379ac134abf6dc82dd07dd536913b9d2bd5c56d
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>
(cherry picked from commit 5d9c9ea22ab4f3b3ee497523e34b6f4d3281f62d)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/virtio/virtio-rng.c