From: Paolo Bonzini <pbonzini@redhat.com>
To: Amit Shah <amit.shah@redhat.com>
Cc: qemu list <qemu-devel@nongnu.org>,
Anthony Liguori <anthony@codemonkey.ws>
Subject: Re: [Qemu-devel] [PATCH 0/8] virtio-rng: hardware random number generator device
Date: Fri, 26 Oct 2012 16:13:50 +0200 [thread overview]
Message-ID: <508A9A9E.3090203@redhat.com> (raw)
In-Reply-To: <cover.1351248724.git.amit.shah@redhat.com>
Il 26/10/2012 13:01, Amit Shah ha scritto:
> Amit Shah (1):
> virtio-rng: hardware random number generator device
>
> Anthony Liguori (7):
> object: add object_property_add_bool (v2)
> qdev: add realized property and make adding child bus implied by
> realize
> vl: add -object option to create QOM objects from the command line
> vl: add -late-object to create QOM objects after machine init
> rng: add RndBackend abstract object class
> rng-urandom: add an RNG backend that uses /dev/urandom
> rng-egd: introduce EGD compliant RNG backend
Honestly I think this is overengineered.
I would instead have the following:
- a chardev that can read from a file (e.g. -chardev
file,path=/dev/urandom,read=on,id=urandom)
- a device that accepts a chardev and understands both egd and raw (e.g.
-device virtio-rng-pci,chardev=urandom,egd=off or -device
virtio-rng-pci,chardev=egdsock,egd=on).
- optionally, a chardev that can produce an endless stream of data via
rdrand.
And that's it.
Also, even if RngBackend goes in, there is no need for -late-object
right now, so I would not include it in this series.
Paolo
next prev parent reply other threads:[~2012-10-26 14:14 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-26 11:01 [Qemu-devel] [PATCH 0/8] virtio-rng: hardware random number generator device Amit Shah
2012-10-26 11:01 ` [Qemu-devel] [PATCH 1/8] object: add object_property_add_bool (v2) Amit Shah
2012-10-26 11:01 ` [Qemu-devel] [PATCH 2/8] qdev: add realized property and make adding child bus implied by realize Amit Shah
2012-10-26 11:01 ` [Qemu-devel] [PATCH 3/8] vl: add -object option to create QOM objects from the command line Amit Shah
2012-10-26 11:01 ` [Qemu-devel] [PATCH 4/8] vl: add -late-object to create QOM objects after machine init Amit Shah
2012-10-26 11:01 ` [Qemu-devel] [PATCH 5/8] rng: add RndBackend abstract object class Amit Shah
2012-10-26 11:01 ` [Qemu-devel] [PATCH 6/8] rng-urandom: add an RNG backend that uses /dev/urandom Amit Shah
2012-10-26 11:01 ` [Qemu-devel] [PATCH 7/8] rng-egd: introduce EGD compliant RNG backend Amit Shah
2012-10-26 11:01 ` [Qemu-devel] [PATCH 8/8] virtio-rng: hardware random number generator device Amit Shah
2012-10-26 14:13 ` Paolo Bonzini [this message]
2012-10-26 15:14 ` [Qemu-devel] [PATCH 0/8] " Anthony Liguori
2012-10-26 15:28 ` Paolo Bonzini
2012-10-26 17:29 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=508A9A9E.3090203@redhat.com \
--to=pbonzini@redhat.com \
--cc=amit.shah@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).