qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC] rng-random: allow to use getrandom()


From: Daniel P . Berrangé
Subject: Re: [Qemu-devel] [RFC] rng-random: allow to use getrandom()
Date: Thu, 9 May 2019 14:29:31 +0100
User-agent: Mutt/1.11.4 (2019-03-13)

On Thu, May 09, 2019 at 03:22:34PM +0200, Laurent Vivier wrote:
> Add a parameter to select the rng-random backend mode,
> from a file or from qemu_guest_getrandom():
> 
>   -object rng-random,id=rng0,mode=file or
>   -object rng-random,id=rng0,mode=getrandom
> 
> by default mode is file

I don't really see any benefit in overloading the existing rng-random
object with a completely different impl. There are already two distinct
backends, so we should just add a third "rng-builtin" which uses the
QEMU built-in APIs for collecting rand data.

This makes it trivial to detect support for this feature by simply
looking for existance of the new object class.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]