qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/8] add paravirtualization hwrng support (v2)
@ 2012-10-30 23:02 Anthony Liguori
  2012-10-30 23:02 ` [Qemu-devel] [PATCH 1/8] vl: add -object option to create QOM objects from the command line Anthony Liguori
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Anthony Liguori @ 2012-10-30 23:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: Amit Shah, Paolo Bonzini, Andreas Faerber, H. Peter Anvin

Hi,

This series implements the backend and frontend infrastructure for virtio-rng.
This is similar to previous series sent out by both Amit and myself although
it has been trimmed down considerably.

In terms of backends, a file and EGD backend are supported.  The file defaults
to /dev/random based on the feedback from Peter.  It's still possible to
support /dev/urandom though as an entropy source by overriding the file name.

v1 -> v2:
 - Include default backend patch from separate series
 - Add a rate limiting patch

My take away from all of the various discussions on what the Right Way to
use virtio-rng is:

 1) /dev/random should always be used as the entropy source (I've left it
    configurable though)

 2) I think the Right Way to configure virtio-rng is to figure out what the
    available entropy is on the host, and then decide how to allocate that
    to each guest.  As such, I've implemented rate limiting.

    I think QEMU is the right place to do this because this is a property of
    specific virtual machines.  I can imagine a cloud provider wanting to
    guarantee a certain level of entropy for different classes of VMs.  Even
    if rngd could be used to do this, configuring it differently for different
    guests would be cumbersome.

 3) `qemu -device virtio-rng-pci` will Just Work but risks exhausting host
    entropy.  This means we can't make it the default for machines.  But for
    most command line users, I think this is the behavior they want.

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

end of thread, other threads:[~2012-10-31  7:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-30 23:02 [Qemu-devel] [PATCH 0/8] add paravirtualization hwrng support (v2) Anthony Liguori
2012-10-30 23:02 ` [Qemu-devel] [PATCH 1/8] vl: add -object option to create QOM objects from the command line Anthony Liguori
2012-10-30 23:02 ` [Qemu-devel] [PATCH 2/8] object: add object_property_add_bool (v2) Anthony Liguori
2012-10-30 23:02 ` [Qemu-devel] [PATCH 3/8] rng: add RndBackend abstract object class Anthony Liguori
2012-10-30 23:02 ` [Qemu-devel] [PATCH 4/8] rng-random: add an RNG backend that uses /dev/random (v2) Anthony Liguori
2012-10-31  7:36   ` Paolo Bonzini
2012-10-30 23:02 ` [Qemu-devel] [PATCH 5/8] rng-egd: introduce EGD compliant RNG backend Anthony Liguori
2012-10-30 23:02 ` [Qemu-devel] [PATCH 6/8] virtio-rng: hardware random number generator device Anthony Liguori
2012-10-30 23:02 ` [Qemu-devel] [PATCH 7/8] virtio-rng: add rate limiting support Anthony Liguori
2012-10-30 23:02 ` [Qemu-devel] [PATCH 8/8] virtio-rng-pci: create a default backend if none exists Anthony Liguori
2012-10-31  1:24 ` [Qemu-devel] [PATCH 0/8] add paravirtualization hwrng support (v2) H. Peter Anvin
2012-10-31  2:12   ` Anthony Liguori
2012-10-31  7:12   ` Aurelien Jarno

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).