From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:58387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBWlr-0001VR-8y for qemu-devel@nongnu.org; Fri, 01 Mar 2013 15:41:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBWlq-0001ID-BJ for qemu-devel@nongnu.org; Fri, 01 Mar 2013 15:41:35 -0500 Received: from mail-qe0-f45.google.com ([209.85.128.45]:50358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBWlq-0001I9-7P for qemu-devel@nongnu.org; Fri, 01 Mar 2013 15:41:34 -0500 Received: by mail-qe0-f45.google.com with SMTP id b4so2616023qen.4 for ; Fri, 01 Mar 2013 12:41:33 -0800 (PST) Sender: Paolo Bonzini Message-ID: <51311279.8040804@redhat.com> Date: Fri, 01 Mar 2013 21:41:29 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <512FF819.7050505@redhat.com> <51310365.8040102@zytor.com> <51310BD6.20708@linux.vnet.ibm.com> In-Reply-To: <51310BD6.20708@linux.vnet.ibm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] virtio-rng and fd passing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Berger Cc: "qemu-devel@nongnu.org" , "H. Peter Anvin" Il 01/03/2013 21:13, Stefan Berger ha scritto: > On 03/01/2013 02:37 PM, H. Peter Anvin wrote: >> On 02/28/2013 04:36 PM, Eric Blake wrote: >>> Stefan Berger and I discovered on IRC that virtio-rng is unable to >>> support fd passing. We attempted: >>> >>> qemu-system-x86_64 ... -add-fd >>> set=4,fd=34,opaque=RDONLY:/dev/urandom >> ^^^^^^^^^^^^ >>> -object rng-random,id=rng0,filename=/dev/fdset/4 -device >>> virtio-rng-pci,rng=rng0,bus=pci.0,addr=0x6 >>> >> Unrelated, but you really, really, really don't want to pass >> /dev/urandom there, use /dev/random. > > From what I am reading about /dev/random is that it will start blocking > once not enough entropy is available anymore. Yes, and the purpose of virtio-rng is not to provide fancy random numbers. It's to provide actual entropy. Paolo