From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [Xen-devel] [RFC] Hypervisor RNG and enumeration Date: Thu, 30 Oct 2014 15:12:53 +0000 Message-ID: <1414681973.2064.49.camel@citrix.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: 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: Andy Lutomirski Cc: Mathew John , Theodore Ts'o , David Hepkin , kvm list , Gleb Natapov , Niels Ferguson , Linux Virtualization , Doug Covelli , Jake Oshins , David Vrabel , Jim Mattson , "H. Peter Anvin" , Paolo Bonzini , Alok Kataria , "xen-devel@lists.xenproject.org" , John Starks List-Id: virtualization@lists.linuxfoundation.org On Thu, 2014-10-30 at 07:45 -0700, Andy Lutomirski wrote: > > Xen does not have a continual source of entropy and the only feasible > > way is for the toolstack to provide each guest with a fixed size pool of > > random data during guest creation. > > > > Xen could seed a very simple per-guest DRBG at guest startup and then > let the rdmsr call read from it. I think I'm a bit confused by the intended scope of this facility. The original spec said: Note that the CommonHV RNG is not intended to replace stronger, asynchronous paravirtual random number generator interfaces. It is intended primarily for seeding guest RNGs early in boot. Which to me reads that the guest should be using this facility to seed it's own simple DRBG on boot (with some finite amount of seed data from the hv) and then using that until it can switch to something better. Is that not the intention? I think it's important to nail down the intended scope of this interface, since it has quite an impact on what would be considered a reasonable common design. Post boot I would as you say expect most OSes to switch over to something more capable, not continue to rely on this facility for the duration. Ian.