[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support |
Date: |
Fri, 26 Oct 2012 20:53:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121016 Thunderbird/16.0.1 |
Il 26/10/2012 17:42, Anthony Liguori ha scritto:
>> Maybe rdrand, but that's just a chardev---so why isn't this enough:
>>
>> -chardev file,source=on,path=/dev/hwrng,id=chr0 -device
>> virtio-rng-pci,file=chr0
>> -chardev rdrand,id=chr0 -device
>> virtio-rng-pci,file=chr0
>> -chardev socket,host=localhost,port=1024,id=chr0 -device
>> virtio-rng-pci,rng=chr0,egd=on
>>
>> (which I suggested in my reply to Amit)?
>
> I don't like overloading chardev to representate any !block device
> backend which is what I fear we're doing here.
Like -chardev msmouse you mean? ;)
> EGD is more than just a dumb pipe of data too. It's got a way to query
> available entropy. I have a strong suspicion that over time, we'll add
> methods to virtio-rng to query available entropy. That would mean
> adding a backend specific ioctl to the chardev layer which is pretty
> ugly.
>
> The overhead of creating a separate backend to begin with is extremely
> small. We're talking about dozens of lines of code. So I don't see
> what the problem is.
If you just make rng-random take a chardev, I have no problem with the
series.
Paolo
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, (continued)
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, H. Peter Anvin, 2012/10/26
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, H. Peter Anvin, 2012/10/26
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, Paolo Bonzini, 2012/10/29
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, H. Peter Anvin, 2012/10/30
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, H. Peter Anvin, 2012/10/30
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, Paolo Bonzini, 2012/10/30
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, H. Peter Anvin, 2012/10/30
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, Paolo Bonzini, 2012/10/31
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, H. Peter Anvin, 2012/10/31
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, Paolo Bonzini, 2012/10/31
- Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support,
Paolo Bonzini <=
Re: [Qemu-devel] [PATCH 0/6] add paravirtualization hwrng support, Amit Shah, 2012/10/29