From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBWf7-00087U-UB for qemu-devel@nongnu.org; Fri, 01 Mar 2013 15:34:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBWf6-0006uc-PS for qemu-devel@nongnu.org; Fri, 01 Mar 2013 15:34:37 -0500 Received: from e7.ny.us.ibm.com ([32.97.182.137]:56637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBWf6-0006uQ-L8 for qemu-devel@nongnu.org; Fri, 01 Mar 2013 15:34:36 -0500 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 1 Mar 2013 15:34:30 -0500 Received: from d01relay05.pok.ibm.com (d01relay05.pok.ibm.com [9.56.227.237]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id DADAE6E8047 for ; Fri, 1 Mar 2013 15:34:26 -0500 (EST) Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay05.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r21KYSMm339714 for ; Fri, 1 Mar 2013 15:34:28 -0500 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r21KYSZO002717 for ; Fri, 1 Mar 2013 15:34:28 -0500 Message-ID: <513110D3.5030503@linux.vnet.ibm.com> Date: Fri, 01 Mar 2013 15:34:27 -0500 From: Stefan Berger MIME-Version: 1.0 References: <512FF819.7050505@redhat.com> <87k3pqzy2y.fsf@codemonkey.ws> In-Reply-To: <87k3pqzy2y.fsf@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Anthony Liguori Cc: "qemu-devel@nongnu.org" On 03/01/2013 03:04 PM, Anthony Liguori wrote: > Eric Blake writes: > >> 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 > Why are you using th rng-random backend instead of the rng-egd backend? I followed the example on the libvirt website trying out the XML for the rng device while adpating the libvirt code to use fd passing and generating the -add-fd command line parameters. > > You can pass chardevs to the egd backend. It's really not a good idea > to pass a fd via rng-rangom. Fine, then we won't use fd passing for this device, whatever the reason may be. Stefan