From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arwva-0004d9-7o for qemu-devel@nongnu.org; Sun, 17 Apr 2016 20:20:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1arwvZ-0003h8-HJ for qemu-devel@nongnu.org; Sun, 17 Apr 2016 20:20:34 -0400 Received: from terminus.zytor.com ([2001:1868:205::10]:36932 helo=mail.zytor.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1arwvZ-0003gP-7Z for qemu-devel@nongnu.org; Sun, 17 Apr 2016 20:20:33 -0400 References: <5710C55E.3030000@redhat.com> <57110D27.6080805@redhat.com> <1627731.Y10g9rcVyf@pintsize.usersys.redhat.com> <1808605284.5070717.1460795498043.JavaMail.zimbra@redhat.com> From: "H. Peter Anvin" Message-ID: <57142835.7090603@zytor.com> Date: Sun, 17 Apr 2016 17:20:05 -0700 MIME-Version: 1.0 In-Reply-To: <1808605284.5070717.1460795498043.JavaMail.zimbra@redhat.com> 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: Paolo Bonzini 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 On 04/16/16 01:31, Paolo Bonzini wrote: > > 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. > You should be able to crib the code from rngd (rng-tools) pretty much verbatim. -hpa