From: Stefano Stabellini Subject: Re: entropy for VMs Date: Mon, 2 Feb 2015 17:40:52 +0000 Message-ID: References: <0EEB9201-A222-4EF2-96A2-790FFDB78970@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="1342847746-531783240-1422898852=:5246" Return-path: In-Reply-To: <0EEB9201-A222-4EF2-96A2-790FFDB78970@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dave Scott Cc: mirageos-devel , Xen-devel List-Id: xen-devel@lists.xenproject.org --1342847746-531783240-1422898852=:5246 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: QUOTED-PRINTABLE On Sun, 1 Feb 2015, Dave Scott wrote: > Hi, >=20 > Mirage now has nice features like TLS[1] and therefore needs a good sourc= e of randomness to generate session keys. Mirage VMs are PV, so we can=E2= =80=99t use virtio-rng. We've created a prototype entropy server which may = be of interest to other people too: >=20 > https://github.com/mirage/xentropyd >=20 > This behaves a bit like xenconsoled: it watches for domains being created= and then connects to them via the console protocol. There is a little hand= shake[2] (to catch accidental screwups with the wrong console) and then the= daemon feeds random data into the console through a rate-limiter. Mirage= =E2=80=99s entropy driver can read the data from the console fairly easily[= 3]. I assume we could write a similar thing for linux too. >=20 > What do you think? (And does anyone know a better way (TM)?) I think it would be very useful in Linux too. > The code is still a bit of a prototype, and contains slightly forked vers= ions of core Mirage libraries-- I need to sort that out before a 1.0. >=20 > Cheers, > Dave >=20 > [1] http://openmirage.org/blog/introducing-ocaml-tls > [2] https://github.com/mirage/xentropyd/blob/master/doc/protocol.md > [3] https://github.com/djs55/mirage-entropy/blob/981b070d78ae407015b1e8de= db3141b05454366f/xen/entropy_xen.ml#L130 > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xen.org > http://lists.xen.org/xen-devel >=20 --1342847746-531783240-1422898852=:5246 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --1342847746-531783240-1422898852=:5246--