qemu/backends
Ladi Prosek 60253ed1e6 rng: add request queue support to rng-random
Requests are now created in the RngBackend parent class and the
code path is shared by both rng-egd and rng-random.

This commit fixes the rng-random implementation which processed
only one request at a time and simply discarded all but the most
recent one. In the guest this manifested as delayed completion
of reads from virtio-rng, i.e. a read was completed only after
another read was issued.

By switching rng-random to use the same request queue as rng-egd,
the unsafe stack-based allocation of the entropy buffer is
eliminated and replaced with g_malloc.

Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Message-Id: <1456994238-9585-5-git-send-email-lprosek@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
2016-03-03 17:42:26 +05:30
..
baum.c backends: Clean up includes 2016-02-04 17:01:04 +00:00
hostmem-file.c backends: Clean up includes 2016-02-04 17:01:04 +00:00
hostmem-ram.c backends: Clean up includes 2016-02-04 17:01:04 +00:00
hostmem.c qom: Swap 'name' next to visitor in ObjectPropertyAccessor 2016-02-08 17:29:56 +01:00
Makefile.objs backends: Introduce chr-testdev 2014-08-06 17:53:05 +02:00
msmouse.c backends: Clean up includes 2016-02-04 17:01:04 +00:00
rng-egd.c rng: add request queue support to rng-random 2016-03-03 17:42:26 +05:30
rng-random.c rng: add request queue support to rng-random 2016-03-03 17:42:26 +05:30
rng.c rng: add request queue support to rng-random 2016-03-03 17:42:26 +05:30
testdev.c backends: Clean up includes 2016-02-04 17:01:04 +00:00
tpm.c backends: Clean up includes 2016-02-04 17:01:04 +00:00