[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH 0/4] virtio-rng and RngBackend infrastructur
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] [RFC PATCH 0/4] virtio-rng and RngBackend infrastructure (v2) |
Date: |
Sun, 1 Jul 2012 23:06:36 +0100 |
User-agent: |
KMail/1.13.7 (Linux/3.2.0-3-amd64; KDE/4.8.4; x86_64; ; ) |
> This series depends on my QOM -object series that I just posted.
>
> In Amit's thread on virtio-rng, danpb mentioned that we really ought to
> have a proper RNG backend infrastructure and of course he's correct on
> that.
>
> Now that we have QOM, I wanted to demonstrate how we can use QOM to
> construct a complete backend without adding any new infrastructure.
>
> I've now implemented a urandom and egd backend and tested them. I think
> the first three patches are ready to go.
I never really understood why this exists in the first place. It's a simple
readonly charcter device. IMHO you should be using virtio-serial. This is
virtio-console v.s. virtio-serial all over again.
The only thing close to a reason I've heard is that guest OS is incompetent
and can't source random rata from a serial device.
Even accepting the pointless guest device, I see absolutely no reason to have
special infrastructure for this within qemu. Character devices do everything
you need. Creating annother "read stream of data" API is needless duplication
and only going to reintroduce bugs we already fixed in the character device
layer.
Paul
- Re: [Qemu-devel] [RFC PATCH 0/4] virtio-rng and RngBackend infrastructure (v2),
Paul Brook <=