[Xen-devel] [RFC] Hypervisor RNG and enumeration

Paolo Bonzini
Thu, 30 Oct 2014 12:25:42 -0000

On 10/30/2014 01:21 PM, David Vrabel wrote:
> I would add:
>
>   If the hypervisor's pool of random data is exhausted, it MAY
>   return 0.  The hypervisor MUST provide at least 4 (?) non-zero
>   numbers to each guest.

Mandating "non-zero numbers" sounds like a bad idea.  Just use the RNG
for what it was designed; returning non-random numbers will not be a
problem.

Paolo