qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/4] rng-random: implement request queue
@ 2016-03-03  8:37 Ladi Prosek
  2016-03-03  8:37 ` [Qemu-devel] [PATCH v3 1/4] rng: remove the unused request cancellation code Ladi Prosek
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ladi Prosek @ 2016-03-03  8:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: amit.shah, pbonzini, pagupta

As suggested by Paolo, I have moved the RngRequest implementation
up to the RngBackend parent class and made both child classes use
it. Apart from the refactoring, the only functional change
compared to v1 is the use of heap instead of stack allocation for
the read buffer in rng-random.

The parent class takes care of creating new requests and adding
them to the queue, as well as removing them from the queue and
deleting them. Child classes have access to the raw GSList * to
do whatever else they need to do (walk the queue, peek the head
of the queue, ..)

Changes from v2:
- updated commit message in 1/4 and 4/4 as requested by Amit

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-03 12:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-03  8:37 [Qemu-devel] [PATCH v3 0/4] rng-random: implement request queue Ladi Prosek
2016-03-03  8:37 ` [Qemu-devel] [PATCH v3 1/4] rng: remove the unused request cancellation code Ladi Prosek
2016-03-03  8:37 ` [Qemu-devel] [PATCH v3 2/4] rng: move request queue from RngEgd to RngBackend Ladi Prosek
2016-03-03  8:37 ` [Qemu-devel] [PATCH v3 3/4] rng: move request queue cleanup " Ladi Prosek
2016-03-03  8:37 ` [Qemu-devel] [PATCH v3 4/4] rng: add request queue support to rng-random Ladi Prosek
2016-03-03 12:07 ` [Qemu-devel] [PATCH v3 0/4] rng-random: implement request queue Amit Shah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).