From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arLdx-0004VS-JD for qemu-devel@nongnu.org; Sat, 16 Apr 2016 04:31:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arLds-0003xi-L6 for qemu-devel@nongnu.org; Sat, 16 Apr 2016 04:31:53 -0400 Received: from mx4-phx2.redhat.com ([209.132.183.25]:34987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arLds-0003ta-Df for qemu-devel@nongnu.org; Sat, 16 Apr 2016 04:31:48 -0400 Date: Sat, 16 Apr 2016 04:31:38 -0400 (EDT) From: Paolo Bonzini Message-ID: <1808605284.5070717.1460795498043.JavaMail.zimbra@redhat.com> In-Reply-To: References: <5710C55E.3030000@redhat.com> <57110D27.6080805@redhat.com> <1627731.Y10g9rcVyf@pintsize.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] RFC: virtio-rng and /dev/urandom List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "H. Peter Anvin" Cc: Hubert Kario , Eric Blake , Cole Robinson , libvirt-list@redhat.com, qemu-devel , "Richard W.M. Jones" , "Daniel P. Berrange" , Peter Krempa , Amit Shah , mik@miknet.net, jjaburek@redhat.com, sgrubb@redhat.com > Also, I do not believe /dev/urandom is FIPS compliant. Finally, the refill > policy is different, so it is not really true the algorithm is the same. > > All in all, other than a seed value it really doesn't make any sense. Of > course, none of this matters on newer Intel hardware ;) Right, but there's always the point about people that use heterogeneous hosts and cannot pass rdrand/rdseed to the guest. For these, we should add a QEMU driver that uses rdrand/rdseed, and thus decouples virtio-rng from the host /dev/* completely. >>From the libvirt POV there are various possibilities: - Libvirt can have a libvirt.conf parameter that says "ignore whatever is specified in the guest XML if rdrand/rdseed is available, and instead use rdrand/rdseed". - Libvirt can allow specifying rdrand/rdseed _and_ an additional backend, like this: /dev/random and fallback to the second if rdrand/rdseed are not available. Paolo