qemu/backends
Amit Shah acbbc03661 rng random backend: check for -EAGAIN errors on read
Not handling EAGAIN triggers the assert

qemu/backends/rng-random.c:44:entropy_available: assertion failed: (len != -1)
Aborted (core dumped)

This happens when starting a guest with '-device virtio-rng-pci',
issuing a 'cat /dev/hwrng' in the guest, while also doing 'cat
/dev/random' on the host.

Reported-by: yunpingzheng <yunzheng@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Message-id: eacda84dfaf2d99cf6d250b678be4e4d6c2088fb.1366108096.git.amit.shah@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-04-16 16:10:21 -05:00
..
baum.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
Makefile.objs QOM-ify the TPM support 2013-04-02 08:15:18 -05:00
msmouse.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
rng-egd.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
rng-random.c rng random backend: check for -EAGAIN errors on read 2013-04-16 16:10:21 -05:00
rng.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
tpm.c sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00