From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [Xen-devel] [RFC] Hypervisor RNG and enumeration Date: Thu, 30 Oct 2014 13:25:42 +0100 Message-ID: <54522E46.1000503@redhat.com> References: <54522D40.8040405@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54522D40.8040405@citrix.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: David Vrabel , Andy Lutomirski , Linux Virtualization Cc: Mathew John , Theodore Ts'o , Jim Mattson , kvm list , Gleb Natapov , Niels Ferguson , David Hepkin , Doug Covelli , "H. Peter Anvin" , Jake Oshins , xen-devel@lists.xenproject.org, Alok Kataria , John Starks List-Id: virtualization@lists.linuxfoundation.org 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