]> git.proxmox.com Git - mirror_qemu.git/commit
rng: switch request queue to QSIMPLEQ
authorLadi Prosek <lprosek@redhat.com>
Thu, 3 Mar 2016 13:16:11 +0000 (14:16 +0100)
committerAmit Shah <amit.shah@redhat.com>
Tue, 8 Mar 2016 07:24:14 +0000 (12:54 +0530)
commit443590c2044968a97f5e7cddd35100c6075856a4
tree55fffa1528d3d3e52f9d2f64afb750d380927910
parent97556fe80e4f7252300b3498b3477fb4295153a3
rng: switch request queue to QSIMPLEQ

QSIMPLEQ supports appending to tail in O(1) and is intrusive so
it doesn't require extra memory allocations for the bookkeeping
data.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Message-Id: <1457010971-24771-1-git-send-email-lprosek@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
backends/rng-egd.c
backends/rng-random.c
backends/rng.c
include/sysemu/rng.h